Click here to Skip to main content
15,879,348 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I managed to embed a .swf onto a windows form, however, this .swf is a container which contains other flash within it.

So to say, when i run the form, the container shows up, when i click on a button on the container (which suppose to load another flash within it), it will not work.

Any solution?
Posted
Updated 29-May-11 15:57pm
v2

I don't think you can have to swf files running on the same stage, but it's been a number of years since I worked with flash in a .Net WinForms app. In any case, you're going to have to debug the Flash part in ActionScript/Flex because Visual Studio doesn't have the ability to debug that kind of code.
 
Share this answer
 
Comments
gt1987 29-May-11 22:01pm    
Hi,

I think you misunderstood my question. I do not meant to debug this .swf file.
What I meant was when I run the form, the flash only shows the "container" and when I want to navigate to another flash page build within this container, it will not load.

IE: first.swf contains a button to load/show second.swf (when click upon the button, second.swf won't load)
#realJSOP 30-May-11 11:37am    
And I think you misunderstood my answer. You have to debug your flash code. The button is powered by action script, unless you're handling the button press inside your .Net app (which you failed to say).
I think you just need to stop the old file, load & play the new file.

How to Play Flash (SWF) inside C#[^]
 
Share this answer
 
Dear all!

I have found my mistake!
I missed out some xml file that is why the flash is not being displayed correctly!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900