Can Unity and Flash communicate between eachother if they coexists in the browser?

Go To StackoverFlow.com

0

In other words, can Flash trigger methods in Unity if both are present on a webpage, and both are setup with some exposed methods to talk to eachother?

Would JavaScript be the middle-man doing the communication between the two?

I'm thinking that Flash would use ExternalInterface and Unity would use something else (I'm not familiar enough with it).

Just curious if that would be possible, in theory.

Thanks!

2012-04-03 23:00
by bigp


4

Looks like unity has methods for talking to JavaScript, similar to as3. It would definitely be possible using JS

Application.ExternalCall( "SayHello", "The game says hello!" );

http://unity3d.com/support/documentation/Manual/Unity%20Web%20Player%20and%20browser%20communication.html

2012-04-04 01:25
by francis
Thanks @f-a, I also found this neat slide presentation that explains how to set this up (on Unity3D, Javascript and Flash ActionScript 3.0.) ~ 35 slides. http://www.slideshare.net/paultondeur/unity-and-flash-the-best-of-both-worlds-unite-presentation-slide - bigp 2012-04-05 13:10
if you found this answer acceptable please take the time to mark it as correct. Thanks - francis 2012-04-05 13:43
Ads