0 Replies Latest reply on May 9, 2008 9:13 AM by limitedwave777

    Variable to function from image

      Greetings ~ I need to feed an image popup scenario with a dynamic name. The image thumbs tile in a repeater and get there paths from a mysql db. For the "popup" the app changes states on click, and displays the big image within the other state. I'm can't figure out how to get the dynamic image name/path into the popup state. ? The same code from the img repeater doesn't work of course. The state change is called from onClick(), which is called from the <mx:Image> tag. Is it possible to pass the name variable to the onClick function dynamically from the image tag? I tried placing the {repeater.item} in the () but got errors.

      Or, anyone know an easy to blowup a dynamically named image source, other than scale and resize (because they ruin the layout while scaling)? Thanks!