mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-01 19:04:38 +00:00
send the resolt with fscommand from run_as2... needed for tests
This commit is contained in:
10
libsrc/ffdec_lib/testdata/run_as3/RunMain.as
vendored
10
libsrc/ffdec_lib/testdata/run_as3/RunMain.as
vendored
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user