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
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/