Was taking a similar approach with repeater and Image tag…thanks for the tip!

Stace

 

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Darin Kohles
Sent: Tuesday, December 13, 2005 10:32 AM
To: [email protected]
Subject: [flexcoders] Re: Using Embed with dynamic values possible?

 

Stacy, yes and no. Just create a new image dynamically when your XML
data is returned (no need to use Embed in this case):

private function resultHandler(event:ResultEvent):Void {
myImage: new Image();
myImage.source=event.result._xml_path_to_image_url;

someContainerObjectLikeCanvas.addChild(myImage);
}

Hope this helps

--- In [email protected], "Stacy Young" <[EMAIL PROTECTED]> wrote:
>
> I'm creating a component that will require a XML dataprovider in which a
> number of elements are paths to images. Currently I'm embedding these
> images statically as follows:
>

>
> [Embed(source="/assets/images/menu/menu_inbox_off.png")]
>
> var img_0_off :String;
>

>
> [Embed(source="/assets/images/menu/menu_inbox.png")]
>
> var img_0_on :String;
>

>
> Now those image urls are dynamic...is there still a way I can embed
> these images?
>

>
> Cheers!
>
> Stace
>








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