Oops:

source=[EMAIL PROTECTED]() + ‘ /’ + object.imagePath}

Tracy


From: [email protected] [mailto:[email protected]] On Behalf Of Tracy Spratt
Sent: Thursday, October 20, 2005 12:47 PM
To: [email protected]
Subject: RE: [flexcoders] Using @ContextRoot() with Loader

 

Just guessing, but try:

source=[EMAIL PROTECTED]()} + ‘ /’ + object.imagePath}

 

Tracy

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of Kashif Noorani
Sent: Thursday, October 20, 2005 12:53 AM
To: [email protected]
Subject: [flexcoders] Using @ContextRoot() with Loader

 

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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to