I am trying to figure out a way to load an image dynamically without coding in relative paths. I tried the following with little luck:

<mx:Loader source="@ContextRoot()/{object.imagePath}" width="40" height="58"/>

The same code works if I replace the @ContextRoot() with the relative path i.e. "../../../".

Any tips?

kash


--
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




Reply via email to