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 [email protected], "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? >

