Browse Source

add trace text on stage

Nicolas Cannasse 15 years ago
parent
commit
f2cffcf26a
2 changed files with 3 additions and 2 deletions
  1. 1 0
      doc/CHANGES.txt
  2. 2 2
      std/flash9/Boot.hx

+ 1 - 0
doc/CHANGES.txt

@@ -11,6 +11,7 @@
 	php: fixed Array.push must return the current length (issue 219)
 	php: fixed EReg.replace (issue 194)
 	php: FileSystem.readDirectory now skips '.' and '..' to be consistent with neko (issue 226)
+	flash9 : add trace text on stage (always over current and subclips)
 
 2010-08-14: 2.06
 	neko : change serializer to be able to handle instances of basic classes from other modules

+ 2 - 2
std/flash9/Boot.hx

@@ -108,7 +108,7 @@ class Boot extends flash.display.MovieClip, implements Dynamic {
 	public static function __clear_trace() {
 		if( tf == null )
 			return;
-		flash.Lib.current.removeChild(tf);
+		tf.parent.removeChild(tf);
 		tf = null;
 		lines = new Array();
 	}
@@ -118,7 +118,7 @@ class Boot extends flash.display.MovieClip, implements Dynamic {
 	}
 
 	public static function getTrace() {
-		var mc = flash.Lib.current;
+		var mc = flash.Lib.current.stage;
 		if( tf == null ) {
 			tf = new flash.text.TextField();
 			var format = tf.getTextFormat();