look into using a runtime shared libraries ( RSL )

or use the url to your image

somebody smarter than me  may have another option. somebody?

 

 

brian..

 

 

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sk_acura
Sent: Thursday, September 06, 2007 9:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: loading images at runtime

 

Hi All,

Is there a way to load the images at runtime??

I am using SpringGraph and implementing the ViewFactory and as we
will have different types of Items in a Graph we would like to use
different images ..

Is there a way to specify the images at run time in Image Class ??

Thanks
Kumar

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "fuad_kamal" <[EMAIL PROTECTED]> wrote:
>
> I am able to load images from a .swf file as long as the .swf is
> embedded in my flex app, but when I try to do the same at runtime /
> without embedding, it fails. Is there a different syntax for
> referencing the images within the .swf at runtime, or is it not
> possible without embedding?
> 
> works:
> 
> [Bindable]
> [Embed(source="testImage.swf#testImage")]
> private var testImage:Class;
> 
> <mx:Image source="{testImage}" id="image2" />
> 
> 
> doesn't work:
> 
> <mx:Image source="testImage.swf#testImage" id="image1"/>
> 
> When embedding, does the entire .swf get embedded, or only the actual
> images that are referenced after the '#'? Is the '#' interpreted as
> code by the compiler, hence causing it to work within the curly braces
> when embedding the image, but failing when part of the source string
> for run-time loading?
>

 



***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***

Reply via email to