Took the AS approach and I’ve got it working for images … moving beyond my initial tests I realized I actually need to create a series of Links (dynamic image path set as the icon attribute) rather than Images and this approach doesn’t work. In desperation I attempted to create all the Image objects (hidden) and tried to reference them as the source of the icon when creating the Links but no go…is there no such thing as “Linkage ID” in flex? Eek!

 

-Stace

 


From: [email protected] [mailto:[email protected]] On Behalf Of Stacy Young
Sent: Tuesday, December 13, 2005 10:39 AM
To: [email protected]
Subject: RE: [flexcoders] Re: Using Embed with dynamic values possible?

 

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 help



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