[flexcoders] Cannot change Loader object's width and height in constructor.

2008-04-06 Thread mouhong.lin
Hi. I create an instance of Loader class. Then use it to load a png file. However, I cannot change the loader's width and height. Code: var _url:URLRequest = new URLRequest(a.png); var _loader:Loader = new Loader(); _loader.load(_url); this.addChild(_loader); If I just type the code above,

RE: [flexcoders] Cannot change Loader object's width and height in constructor.

2008-04-06 Thread Alex Harui
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mouhong.lin Sent: Sunday, April 06, 2008 5:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cannot change Loader object's width and height in constructor. Hi. I create an instance of Loader class. Then use it to load