mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-05 18:34:45 +00:00
Added: #1383 AS Debugger - debugging nested SWFs
This commit is contained in:
24
libsrc/ffdec_lib/testdata/debug_inner/inner2/src/Main.as
vendored
Normal file
24
libsrc/ffdec_lib/testdata/debug_inner/inner2/src/Main.as
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
package
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
import flash.events.Event;
|
||||
|
||||
public class Main extends Sprite
|
||||
{
|
||||
MyInnerClass2;
|
||||
|
||||
public function Main()
|
||||
{
|
||||
if (stage) init();
|
||||
else addEventListener(Event.ADDED_TO_STAGE, init);
|
||||
}
|
||||
|
||||
private function init(e:Event = null):void
|
||||
{
|
||||
removeEventListener(Event.ADDED_TO_STAGE, init);
|
||||
// entry point
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
37
libsrc/ffdec_lib/testdata/debug_inner/inner2/src/MyInnerClass2.as
vendored
Normal file
37
libsrc/ffdec_lib/testdata/debug_inner/inner2/src/MyInnerClass2.as
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
package
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
import flash.text.TextField;
|
||||
import flash.text.TextFormat;
|
||||
|
||||
public class MyInnerClass2
|
||||
{
|
||||
|
||||
public function MyInnerClass2()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function run(s:Sprite): void {
|
||||
var myvar:int = 2;
|
||||
trace("hello from inner class 2");
|
||||
|
||||
var textField:TextField = new TextField();
|
||||
|
||||
textField.text = "Hello from inner2 !";
|
||||
|
||||
var textFormat:TextFormat = new TextFormat();
|
||||
textFormat.size = 24;
|
||||
textFormat.color = 0x000000;
|
||||
textField.setTextFormat(textFormat);
|
||||
textField.width = 200;
|
||||
|
||||
s.addChild(textField);
|
||||
|
||||
textField.x = 50;
|
||||
textField.y = 75;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user