Yes indeed, the only way to use this iconField is embeding an Image. There is a workaround using a normal image component and loading dynamically, but you will have to build your own popup window in some cases ( try setting the image component with a negative y ), otherwise its not to hard thought, you just have to start from a Canvas and design the layout of your popup.

 

Best Regards

 

Roberto Frias

 


Von: [email protected] [mailto:[EMAIL PROTECTED] Im Auftrag von e_baggg
Gesendet: Donnerstag, 31. August 2006 22:53
An: [email protected]
Betreff: [flexcoders] How to load an Image dynamically as for icon (of type Class)??

 

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





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to