mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-30 17:36:58 +00:00
Fixed twolevel nested debugging
This commit is contained in:
40
libsrc/ffdec_lib/testdata/debug_inner/inner2/src/InnerMain2.as
vendored
Normal file
40
libsrc/ffdec_lib/testdata/debug_inner/inner2/src/InnerMain2.as
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
package
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
import flash.events.Event;
|
||||
import flash.text.TextField;
|
||||
import flash.text.TextFormat;
|
||||
|
||||
public class InnerMain2 extends Sprite
|
||||
{
|
||||
MyInnerClass2;
|
||||
|
||||
public function InnerMain2()
|
||||
{
|
||||
if (stage) init();
|
||||
else addEventListener(Event.ADDED_TO_STAGE, init);
|
||||
}
|
||||
|
||||
private function init(e:Event = null):void
|
||||
{
|
||||
removeEventListener(Event.ADDED_TO_STAGE, init);
|
||||
|
||||
var textField:TextField = new TextField();
|
||||
|
||||
textField.text = "Main inner2.";
|
||||
|
||||
var textFormat:TextFormat = new TextFormat();
|
||||
textFormat.size = 24;
|
||||
textFormat.color = 0x000000;
|
||||
textField.setTextFormat(textFormat);
|
||||
textField.width = 200;
|
||||
|
||||
addChild(textField);
|
||||
|
||||
textField.x = 50;
|
||||
textField.y = 100;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user