How to pass variable From .swf File to .as file?
问题 I have a main in .as and I load .swf in my .as.It's Working fine,Now I want the take variable From .swf and Pass it Into .as. How can i do this? pls. help! My .swf file coding function formatMessage(chatData:Object) { var number:uint = chatData.user; trace(chatData.user); } private function addText() { _loader = new Loader(); _loader.x=10; _loader.y=200; _loader.load(new URLRequest("receive.swf"));//Here i Can Load the Swf.Here how Can i acces the Variable of number ? addChild(_loader); } 回答1