I encoded this little snippet to show that I do not understand:
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()"> <mx:Script> public function init():void { txtName.text = this.loaderInfo.toString(); } </mx:Script> <mx:TextInput x="50" y="10" id="txtName"/> </mx:Application>
I get the following error:
TypeError: Error
Can't I read loaderInfo inside the creationComplete handler? I am trying to pass a string from html to my flash component, so I need to get loaderInfo to work.
source share