[haXe] haxe JS remoting without ExternalInterface

Nicolas Cannasse ncannasse at motion-twin.com
Thu Feb 15 10:26:32 CET 2007


> Now the question is, how can I port that mechanism to haxe (if possible
> at all ...). If I leave the two-frame helper SWF in Actionscript, but
> the hosting flash movie (which loads the helper swf) in Haxe, then how
> can I invoke directly functions in the hosting swf ? 

I would do that without a MC, just using a second SetVariable with a
incremental counter. This way, you can register a haxe.Timer loop that
will check if the counter is modified, and execute the corresponding call.

The other way would be to create a MC with two frames using Swfmill,
with the second frame simply calling execute(), and bind the method from
haxe. Then attach this MC in _root._js_incoming_call or something like this.

Nicolas



More information about the Haxe mailing list