[web] Interfacing Flash with JAVA/C++
Hey
I'm looking for information on how to get Macromedia Flash to talk with C++ or JAVA. I have heard that this is possible. I'm currently gooling the subject but are having trubble finding a good source on how to do this.
What I'm trying to do is to have game logic in c++/Java and then only the graphics/presenting layer in flash.
thanks
Lizard
What I'm looking for is to run a swf file as normal in macromedia flash player in a browser. But it should be able to talk with c++/JAVA code for game logic.
gameswf seams to be a parser and renderer of swf files, intressting but nort really what I'm looking for.
Lizard
gameswf seams to be a parser and renderer of swf files, intressting but nort really what I'm looking for.
Lizard
What you're probably looking for is something like Multidmedia Zinc. That's an executable wrapper for the Flash player that lets you do things like merge DLL's into your executable and call the code in 'em from Flash.
Other than that, there's not a real Flash-only based solution for that. Flash is designed to be a thing that runs in its own sandbox to prevent malicious Flash movies from hurting your machine, so there's no Macromedia-blessed method for breaking out of that.
Other than that, there's not a real Flash-only based solution for that. Flash is designed to be a thing that runs in its own sandbox to prevent malicious Flash movies from hurting your machine, so there's no Macromedia-blessed method for breaking out of that.
Thnaks that was intresting.
Anyway I found information that since Flash is implemented as a activeX component on windows one can intreact with it through fscommand().
Lizard
Anyway I found information that since Flash is implemented as a activeX component on windows one can intreact with it through fscommand().
Lizard
Also check out Screenweaver. It's much easier than embedding Flash into a C++ helper-app and managing the communication between 'em. And it's free.
I once had to implement flash talking to c# and also asp.net pages.. and I used fscommand and listeners in flash and caught the fscommand event that the activeX component throws.
Was quite easy.
Was quite easy.
Quote:Original post by Saruman
I once had to implement flash talking to c# and also asp.net pages.. and I used fscommand and listeners in flash and caught the fscommand event that the activeX component throws.
Was quite easy.
Yes, I was on this track to but since ActiveX is a Microsoft technology this would mean only windows. So I'm looking fior a more cross platform solution. I have found that actionscript can communicate with javascript (<a href="http://osflash.org/flashjs">link</a>). And an applet can also call javascript and be called from javascript according to sources. Right now I'm having problems calling javascript from an applet (see my other <a href="http://www.gamedev.net/community/forums/topic.asp?topic_id=357633"> thread </a>). <br><br>Edit: Solved the part about calling javascript from an Applet.<br><br>Lizard<br><br><!--EDIT--><span class=editedby><!--/EDIT-->[Edited by - LizardCPP on November 13, 2005 3:52:37 AM]<!--EDIT--></span><!--/EDIT-->
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement