Hello!
I'm trying to get ActionScriptVoid to work so I can call an actionscript function from unrealscript, but it's not working.
Currently it looks like this:
From my HUD-class
In my HudMovie-class
In my actionscript
It prints out
but not the
so I'm not sure what's going on and why it's not working.
I've set the actionscript-class as my "document class" in the flash-file so it should work.
I'm trying to get ActionScriptVoid to work so I can call an actionscript function from unrealscript, but it's not working.
Currently it looks like this:
From my HUD-class
Code:
`log("Before HudMovie.CallAddItem"); HudMovie.CallAddItem(); `log("Woho");
Code:
function CallAddItem() { ActionScriptVoid("AddNewItem2"); } function InventoryItemNotAdded() { `log("InventoryItem not added"); }
Code:
public function AddNewItem2():void { ExternalInterface.call("InventoryItemNotAdded"); }
Before HudMovie.CallAddItem
Woho
Woho
InventoryItem not added
I've set the actionscript-class as my "document class" in the flash-file so it should work.
Comment