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. var photoID:Number = 1234; http://www.mySite.com/pictures/{String(photoID)}.jpg" /> -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Friday, January 20, 2

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"   source="{imgSource}"/>   Sree - Original Message - From: yaagcur To: flexcoders@yahoogroups.com Sent: Saturday, January 21,