0 Replies Latest reply on Jan 3, 2012 12:14 PM by Chriszzzzzzzzzzzz

    Use dropdownlist to select image (database driven)


      Im building a web application in flash builder which will be database driven. The database will contain id (of product), name (of product), photofile (text string i.e photo1.jpg). i have the data/services up and running, i just need to get it so when the user selects a name from the dropdownlist the corresponding photofile is selected into the picture frame.


      I know to turn the photofile text into a picture it will be something like this but not sure what code to insert into the <s:Image tag;


      private function getPhotoURL(item:Object):String{

                                      return "http://............./assets/"+item.photofile;



      I don't know how to bind everything together, any help would be appreciated.