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.
: [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
: [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
If you get this to work, please let us
know!
- Original Message -
From: Tracy Spratt
To: flexcoders@yahoogroups.com
Sent: Thursday, October 20, 2005 1:13 PM
Subject: RE: [flexcoders] Using @ContextRoot() with
Loader
Oops:
source=[EMAIL PROTECTED]()
+ / + object.imagePath
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL
Sent: Thursday, October 20, 2005
3:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Using
@ContextRoot() with Loader
If you get this to work, please let us know!
- Original
From:
flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of JesterXLSent: Thursday, October 20, 2005 3:26
PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Using
@ContextRoot() with Loader
If you get this to work, please let
us know!
- Original Message ---
6 matches
Mail list logo