I have an application that has a popup window that users will popup very rarely. This popup window has a <mx:List> with a dozen different icons for each row in the List.
For this reason I do not want to embed the images, but rather, load them at runtime when the wndow is popped. I am having trouble displaying the icons because the iconField and funtions require an Object of type "Class". Using the Loader() class, a DisplayObject is returned: var pictLdr:Loader = new Loader(); var pictURL:String = "banana.jpg" var pictURLReq:URLRequest = new URLRequest(pictURL); pictLdr.load(pictURLReq); this.addChild(pictLdr); How do I load a image dynamically and assign it to an icon? Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

