eCampbellCase
May 11th, 2008, 12:59 AM
Hello All,
I'm creating a gallery and using an XML file to store the data (real original right?). So, I'm loading in different images and giving them a name when they load into flash. I want the images to be interactive. I can target these by getChildByName and applying an event listener. But, this isn't very practical. I'd like to have one eventListener and one function that changes depending on which image is clicked.
e.g. The clicked image becomes larger and the rest of the images drop below.
or maybe there is a way of generating functions. So, every time an images is added flash creates a new function and eventListener assigned to that image.
If anyone could help me out with achieving this goal I'd really appreciate it.
Thanks
I'm creating a gallery and using an XML file to store the data (real original right?). So, I'm loading in different images and giving them a name when they load into flash. I want the images to be interactive. I can target these by getChildByName and applying an event listener. But, this isn't very practical. I'd like to have one eventListener and one function that changes depending on which image is clicked.
e.g. The clicked image becomes larger and the rest of the images drop below.
or maybe there is a way of generating functions. So, every time an images is added flash creates a new function and eventListener assigned to that image.
If anyone could help me out with achieving this goal I'd really appreciate it.
Thanks