Re: [flexcoders] Sourcing an image using a variable in URL (Flex 2)

2006-01-20 Thread Sreejith Unnikrishnan
Try constructing the entire URL in script and assign it to the image! var imgSource:String = "http://www.mySite.com/pictures/"+photoID+".jpg" mx:Image id="myImage"source="{imgSource}"/ Sree - Original Message - From: yaagcur To: flexcoders@yahoogroups.com Sent:

RE: [flexcoders] Sourcing an image using a variable in URL (Flex 2)

2006-01-20 Thread Deepa Subramaniam
Hi - You can use databinding to plug in your photoID dynamically. mx:Script var photoID:Number = 1234; /mx:Script mx:Image id=myImage source=http://www.mySite.com/pictures/{String(photoID)}.jpg / -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On