Monday, June 24, 2013

Getting Flash to Talk to UDK - part 4


Talking to Unreal Script -


In as_base, outside of any function, you can simply put:


import flash.external.ExternalInterface;


This is the standard way of getting Flash to talk to what is containing it. In this case the UDK script that will be set up later.


ExternalInterface.call("UnrealScriptFunction");


This will call the Unreal Script function by name. So that, MyFunction(), 
is called by putting:


ExternalInterface.call("MyFunction");

No comments:

Post a Comment