I seem to remember the image component does that. You might try Ely Greenfields (?) "superImage" component instead, as I remember it keeps it's own cache. Or find a way to load them with a Loader and store their BitmapData somewhere. The trick is to do something like this when the Loader completes
var yourImageData:BitmapData = loader.content as BitmapData; Hope that helps, Jim. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Baetz Sent: 30 October 2008 16:59 To: [email protected] Subject: [flexcoders] Dynamicaly loading of images Hi, for a special tool i want to display buttons with icons that where loaded at runtime (based on an xml document loaded at runtime) in adobe livedocs i read that i cant load icons at runtime. To workaround that i switched to Images in buttonmode. But everytime the displayed image changes because i changed the source attribute (for example when my "button" is disabled) there is a timegap and the image is empty. This happens even i used the same source-url before. My guess would be that my application "forgetts" the imagedata if no object uses it anymore and therefore loads the url again. So im looking either for a way to store the imagedata and supply it to my "Button" when necessary. Greetings, Alexander ------------------------------------ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links ______________________________________________________________________ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. ______________________________________________________________________

