Thanks that worked great --- In [email protected], "Deepa Subramaniam" <[EMAIL PROTECTED]> wrote: > > 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: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur > Sent: Friday, January 20, 2006 10:37 AM > To: [email protected] > Subject: [flexcoders] Sourcing an image using a variable in URL (Flex 2) > > I have a line > > <mx:Image id="myImage" source="http://www.mySite.com/pictures/1234.jpg"/> > > which I want to generalise using a variable photoID to something like > > <mx:Image id="myImage" > source="http://www.mySite.com/pictures/"+photoID+".jpg"/> > This produces a compile error as the " appears before end of URL. I > tried the " option but just get the broken image icon as a result > > Any ideas what correct dode is , please > > > > > > > > > -- > 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 > > * Visit your group "flexcoders" on the web. > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. >
-- 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/

