Hi Alexander,

Not sure if this helps or not, but for images that I need in my app, I embed them from the get go, bind them and assign them to a var that I can reference on the fly later....and can change by simply changing the source for the image id:

           [Bindable]
           [Embed(source='assets/img/logo-inline.png')]
           private var Logo:Class;

           <mx:Image id='logoImage" source="{Logo}" />

   Then to change the image...

           logoImage.source = "{newLogo}";

HTH,
Adrian

Alexander Baetz wrote:
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






Reply via email to