send the resolt with fscommand from run_as2... needed for tests

This commit is contained in:
honfika@gmail.com
2015-10-02 15:02:10 +02:00
parent ec5d34cccc
commit fb69a2d6b0

View File

@@ -4,6 +4,7 @@
import flash.text.TextField;
import flash.events.MouseEvent;
import flash.external.ExternalInterface;
import flash.system.fscommand;
public class RunMain extends MovieClip {
@@ -39,6 +40,15 @@
addChild(simpleButton);
ExternalInterface.addCallback("testFunc", testFunction);
var result;
try {
result = Run.run();
} catch (e) {
result = e.toString();
}
fscommand("run", result);
}
function testFunction() {