Jump to content

  • Log In with Google      Sign In   
  • Create Account


Integrating Flash into a C++ project


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 Applegenie   Members   -  Reputation: 109

Like
0Likes
Like

Posted 21 June 2012 - 02:51 AM

Hello everyone,

About half a year ago, I started learning c++, using the SDL library. I've managed to obtain a fairly good understanding of the library, and the language as well, allowing me to create simple 2d games. Before I started with C++ however, I used to do all my projects in Actionscript 3.0. Now..this question might be a little noobish, but I thought that maybe one of you could point me in the right direction. Posted Image I noticed that a lot of games these days use Actionscript 3.0 and Flash to do their GUI.

The question is; How can I integrate my Actionscript 3.0 code into my C++ project? I've done a google search, but all the tutorials I encountered are a little bit out of my league. Just a link to an article that explains it from a beginners point of view, or something that can point me in the right direction would be helpful enough Posted Image.

Thanks in advance!

Edited by Applegenie, 21 June 2012 - 02:52 AM.


Sponsor:

#2 saejox   Members   -  Reputation: 714

Like
0Likes
Like

Posted 21 June 2012 - 10:14 AM

here are your options:


pure flash + actionscript:

http://tulrich.com/geekstuff/gameswf.html // free, lack of proper documentation, diffucult setup
http://www.scaleform.com/ // very expensive, easy setup, support

browser integration: (browser in your game)

QtWebkit // free, difficult to integrate
Berkelium // free, difficult to integrate
Awesomium // costly, easy to integrate
chromiumembedded // free, difficult to integrate

as you see, if you dont want pay thousands of dolars you need to get ready for many sleepless nights.

#3 frob   Moderators   -  Reputation: 19824

Like
0Likes
Like

Posted 21 June 2012 - 10:34 AM

There are many pieces of middleware that support Flash for UI, especially in game consoles.

As mentioned, they cost several thousand dollars.

Professional studios can easily justify the cost since it saves many months of effort. The small fee is offset by a huge time savings. Hobby projects, the offset is not so much.
Check out my personal indie blog at bryanwagstaff.com.

#4 M6dEEp   Members   -  Reputation: 889

Like
0Likes
Like

Posted 21 June 2012 - 12:07 PM

There is librocket which looks pretty interesting but I admit I have never used it (although I really want to).

In addition, the only way you're going to integrate flash into an engine is to get a copy of the AS3.0 spec and then work from there (or plonk down the money for Scaleform GFX UI). Like others have said, it is overkill (and it even tends to be for a lot of AAA games). If you really would like to use flash in a project, I would suggest taking a look at UDK and UnrealScript and then go from there. You can pull off some really awesome stuff with it:

http://www.youtube.com/watch?v=0jpqIwHlR3o

#5 dougbinks   Members   -  Reputation: 480

Like
0Likes
Like

Posted 21 June 2012 - 01:42 PM

You could also take a look at GameSWF - a C++ open source flash player designed for game UIs. It was the basis behind the commercial Scaleform game UI middleware.

Note that libRocket doesn't actually play flash, but it's quite useful for UIs if you want a html and css style data driven approach.

#6 Applegenie   Members   -  Reputation: 109

Like
0Likes
Like

Posted 22 June 2012 - 02:23 AM

Thanks for the replies everyone. Very enlightening! I think I might try that GameSWF, and see how far I can go with it. I'm usually not afraid of spending countless nights into something like this. Anyway..I've also taken a look at the UDK, but I haven't really found out whether or not I can actually use C++ in it, instead of it's own UnrealScript. It's not that I mind using it though, but I think it's better to learn one language at the time :)

#7 dougbinks   Members   -  Reputation: 480

Like
0Likes
Like

Posted 22 June 2012 - 03:03 AM

UDK can use C++ by calling DLLBind from UnrealScript. You'll still need UnrealScript for a lot of things though.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS