 			o.y = (stage.stageHeight - loadInfo.height*scale) / 2;
 			
 			traceInfo(o);
+		}
+		
+		//-----------------------
+		private function showError(msg:String):void {
+			var tfor:TextFormat = new TextFormat();
+			tfor.size = 15;
+			tfor.color = 0xff0000;
+			tfor.align = "center";
+			
+			var tf:TextField = new TextField();
+			tf.wordWrap = true;
+			tf.multiline = true;
+			tf.selectable = false;
+			tf.border = false;
+			tf.defaultTextFormat = tfor;
+			tf.text = "播放失败！\n请确认文件是否存在，或者重新打开一次!" + "\n" + msg;
+			tf.setTextFormat(tfor);
+			tf.width = stage.stageWidth/3*2;
+			tf.height = stage.stageHeight/2;
+			
+			stage.addChild(tf);
+			trace("stage: " + stage.stageWidth+","+stage.stageHeight
+				+"\ntf: "+tf.x + "," + tf.y + ",  "+tf.width + ","+tf.height);
+			tf.x = (stage.stageWidth - tf.width)/2;
+			tf.y = (stage.stageHeight - tf.height)/2;
 		}
 		
 		//-----------------------

		
		private function loadIOError(e:IOErrorEvent):void {
			trace("swfLoader loadIOError, "+e.toString());
		}
		
		private function loadSecurityError(e:SecurityErrorEvent):void {
			trace("swfLoader loadSecurityError, "+e.toString());
		}
		
		//-----------------------

			});
			loader.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void {
				trace("io error, "+e.toString());
				showError(e.toString());
			});
			loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function(e:SecurityErrorEvent):void {
				trace("security error, "+e.toString());
				showError(e.toString());
			});
			loader.load(new URLRequest(jointUrl("data/path.xml")));
		}
