Hello every body
How I can use flash(swf) in unity3d
thank you very much
Er, you can’t. Why would you?
unity doesn’t support running flash content within a project, but you can do a tight integration of the webplayer into a flash project. An example of this is the AXE “Billions” advergame http://www.efeitoaxe.com.br/
Cool, AngryAnt, I didn’t know that this is possible!
Can you point me into the direction of some documentation on how to embed Unity into Flash? That would be very well appreciated. Sorry though, if I have missed something obvious. I’m pretty new to Unity and am still overwhelmed by its massive documentation (meant as positively as humanly possible!) and the possibilities it is offering. I’m still trying to get a grip on it.
Look more closely at the example that AngryAnt sent – Unity isn’t embedded in Flash.
to make sure in firefox press command i and click media then scroll down to game.unity3d it isn’t flash it’s html with a jpg from the site around it
Hey AngryAnt that integration is VERY tight, i was wondering how the keys are being sent to unity tho?
Or is the flash communicating with unity for this??
Id love to know more on how to integrate more tightly with flash like you have
Hey guys,
maybe you wanna try this blog post: http://www.paultondeur.com/2008/11/12/unity3d-communication-with-browser-and-flash/
hf
Thanks for the post phrank, good to see unityobject is still useful in embedding
- My interest is are they actually using flash to keyboard keyboard events?
- How are they displaying unity thru flash (it doesnt seem they set the wmode to transparent/opaque?
This is an overview of what they’re doing:
-
two divs/iframes on the page, one shows a SWF, the other Unity content
-
they use browser JavaScript to toggle the sizes of each so that one item displays (full size) the other is made small and essentially invisible (1px x 1px sort of thing)
Unity is not “showing through” Flash per se.