Ver código fonte

added warning for loaded mcs.

Nicolas Cannasse 18 anos atrás
pai
commit
764d560e5a
1 arquivos alterados com 2 adições e 0 exclusões
  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");