Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 29-May-11 15:46pm
gt1987186
Edited 29-May-11 15:57pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
gt1987 at 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)
John Simmons / outlaw programmer at 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).
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I think you just need to stop the old file, load & play the new file.
 
How to Play Flash (SWF) inside C#[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Dear all!
 
I have found my mistake!
I missed out some xml file that is why the flash is not being displayed correctly!
  Permalink  

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



Advertise | Privacy | Mobile
Web04 | 2.8.141015.1 | Last Updated 30 May 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100