Browse Source

topleft default

Nicolas Cannasse 18 years ago
parent
commit
a57499376d
2 changed files with 5 additions and 1 deletions
  1. 1 0
      doc/CHANGES.txt
  2. 4 1
      std/flash9/Boot.hx

+ 1 - 0
doc/CHANGES.txt

@@ -5,6 +5,7 @@
 	optimized a...b loops (tmp variable can't be modified)
 	several flash9 optimizations
 	flash9 debug support (with -debug)
+	set align to TopLeft if not defined for flash9
 
 2007-10-31: 1.16
 	use _sans font for default flash traces (better Linux support)

+ 4 - 1
std/flash9/Boot.hx

@@ -59,7 +59,10 @@ class Boot extends flash.display.MovieClip {
 			};
 		}
 		lines = new Array();
-		flash.Lib.current = if( mc == null ) this else mc;
+		var c = if( mc == null ) this else mc;
+		flash.Lib.current = c;
+		untyped if( c.stage != null && c.stage.align == "" )
+			c.stage.align = "TOP_LEFT";
 		if( init != null )
 			init();
 	}