소스 검색

added warning for loaded mcs.

Nicolas Cannasse 18 년 전
부모
커밋
764d560e5a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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");