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

Go To


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.


2012-04-03 23:00
by bigp


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!" );

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. - 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