0 Replies Latest reply on Jul 15, 2007 11:53 AM by

    need to pass value on click event

      I hope I can explain this well. I've built a set of movable thumbnails that is basically a VBox with an image and text field in it. I based it off of the flexstore sample application. Inside the component's script I declare a public variable called comp. It contains the name of the corresponding viewstack view. When the thumbnail component is clicked I need to update my viewstack with this variable's name. I'm getting the variable by calling event.target.comp from the mouseclick event. The code works fine as long as I don't click on the image or text box. Otherwise it tells me the comp is not defined and there is no default value. How can I make it so that no matter where I click inside the thumbnail component, it returns this value to me?

      Site with source is available here

      Going to set this one to answered and repost in the appropriate forum. Sorry