Browse Source

added warning for loaded mcs.

Nicolas Cannasse 18 years ago
parent
commit
764d560e5a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      std/flash9/Boot.hx

+ 2 - 0
std/flash9/Boot.hx

@@ -104,6 +104,8 @@ class Boot extends flash.display.MovieClip {
 		lines = lines.concat((pstr +": "+__string_rec(v,"")).split("\n"));
 		tf.text = lines.join("\n");
 		var stage = flash.Lib.current.stage;
+		if( stage == null )
+			throw "Loaded movie not ready to trace, wait a few frames";
 		while( tf.height > stage.stageHeight ) {
 			lines.shift();
 			tf.text = lines.join("\n");