I have an ArrayCollection that has 2 objects in it, a string and an object which is an Image. What I need is when the image is clicked (it's displayed) to show an alert box with the text. So... is there anyway to backtrack from event.target to the index of the ArrayCollection that image is in please?
Loop through the ArrayCollection until you find an entry that is the same as the events currentTarget.
There's probably a better way to do what you are doing.
I keep data from a DB in an ArrayCollection. The data includes some x,y coordinates and using those I place some markers on an image.
The markers are created dynmically of course and I keep reference to them in the same AC that keeps the data and their x,y.
I've looked in the Debuging mode in many of the vars there and cannot find the data there.