1

I do not want to intertop between c# and AS3 or here. I want a full screen content player in C# which can host a Adobe Flash swf file. Is there an example? In full screen, right clicks would have custom behavior attached.

I saw one in Visual c++

As per Chris's I checked the link. I tried adding these lines of code:

path = @"D:\exampleFlex\MainMenu.swf";
            axShockwaveFlash1.LoadMovie(0, path);
            axShockwaveFlash1.Play();

However, this swf was from Flash Builder and not Flash, hence there were other files like

framework_4.1.0.16076.swz  rpc_4.1.0.16076.swz    sparkskins_4.1.0.16076.swz
osmf_flex.4.0.0.13495.swz  spark_4.1.0.16076.swz  textLayout_1.1.0.604.swz
playerProductInstall.swf

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf663fe-7fff.html

Hence, I could only see the background color of the swf, the swf did not play.

iceman
  • 4,211
  • 13
  • 65
  • 92
  • 3
    http://stackoverflow.com/questions/1037/displaying-flash-content-in-a-c-winforms-application – Chris Ghenea Oct 06 '11 at 12:37
  • @Chris: thanks a lot; this swf was from Flash Builder and not Flash, – iceman Oct 09 '11 at 02:15
  • :) a swf is just a swf. Doesn't matter from where it comes. Try the solution from the link. It will work. – Chris Ghenea Oct 09 '11 at 06:25
  • @Chris: Flex 4 enable creating swf which are optimized for speed, so by default they are dynamically linked to the SDK libs. Thats why I found so many swfs and swz in my bin-release. Also, the flex compiler produces html wrappers by default as these are RIAs. I guess I had to dig deep into Flex now; i had to use static linking. http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7add.html – iceman Oct 09 '11 at 07:17

1 Answers1

1

Could you just host WebBrowser component, which has html code to host flash?

Jeffers
  • 183
  • 2
  • 7
  • I suppose it's a way to go, albeit much like getting a swiss army knife if all you need is a can opener. – back2dos Oct 09 '11 at 11:08