h Loader.
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ronnlixx
Sent: Monday, April 09, 2007 3:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] loading image with AS and Loader
I'm trying this example from the documentation:
var pictLdr:L
Only UIComponents (or IUIComponents) can be added as a child to Containers.
Loader is not a UIComponent and I assume "this" is the Application and thus
a Container. You're either going to need to add the Loader to a UIComponent
and add that component to the application, or you can use
mx.controls
I'm trying this example from the documentation:
var pictLdr:Loader = new Loader();
var pictURL:String = "banana.jpg"
var pictURLReq:URLRequest = new URLRequest(pictURL);
pictLdr.load(pictURLReq);
this.addChild(pictLdr);
I'm trying it in my creationComplete callback and get this error:
cannot coe
3 matches
Mail list logo