Click here to Skip to main content
12,756,514 members (30,646 online)
Rate this:
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 16:46pm
Updated 29-May-11 16:57pm
Rate this: bad
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.
gt1987 29-May-11 22:01pm

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)
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
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#[^]
Rate this: bad
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!

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170217.1 | Last Updated 30 May 2011
Copyright © CodeProject, 1999-2017
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