Swf integration in c ++

Is there a way to make C ++ gui applications that include .swf?

A SWF file is quite small and easier to make than gifs or other kinds of animations, so it would be nice to include them.

Some library recommendations, free or even open source ...

+4
source share
7 answers

You can place the Flash player in your application. You just need to implement the web browser side of your chosen plugin architecture. You have two options: Netscape and ActiveX plugins. If you want to work only on Windows, placing it as an ActiveX control is very simple. If you want to run a cross platform, you need to implement the browser side of the NPAPI plugin, which is actually involved.

+3
source

Not free or open-source, but Scaleform GFx is a commercial cross-platform Flash player.

+3
source

Awesomium and other websites from this guy is what you need.

  • interpret html / javascript / css - through Chromium - the Chrome browser database from Google.
  • playing flash content
  • C ++
  • is free
  • open source
  • awesome

It creates a texture (2D image) from web content (html / javascript / css + flash!). Then you can use this demo as you want. In this video, you can see that Youtube is displayed on a texture that is used in a three-dimensional square grid. You can also download the demo.

Some people use it to replace their GUI system. See Also AkaRUI.

+3
source

So ... I am not a C ++ person, but I am a flash / flash person, and I worked on the flash site of the projects that did this.

I think you can find this: http://www.rohitab.com/discuss/lofiversion/index.php/t29239.html

and maybe this will help: http://www.codeproject.com/KB/cpp/FlashGui.aspx

You should be able to interact with swfs just fine, and you will use ExternalInterface to communicate with them.

+2
source

I heard something about a library called swiff that was used for the Battlefield 2 menu but did not open afaik.

+1
source

Yes there is: SWFDEC I used it a few years ago. I had some problems handling interactive SWFs, but I'm not sure if this was due to me or the library. In any case, swfdec claims to support Youtube video right now. Therefore, I am sure that it can handle simple animations.

+1
source

I know that this does not answer your initial question about the presence of swf in a C / C ++ program, but you can have c / C ++ in your flex / air application with alchemy from adobe labs.

from the website "C / C ++ code compiled in ActionScript 3.0 as a SWF or SWC that runs in Adobe Flash Player 10 or Adobe AIR 1.5."

http://labs.adobe.com/technologies/alchemy/

+1
source

All Articles