This content has been marked as final. Show 3 replies
ff_mc and moveForward() probably shouldn't be in startLoad() because they don't need to be repeatedly defined. likewise, none of the other functions in startLoad() need to be repeatedly defined.
to solve your problem, you can create a parent movieclip for each thumb loader and assign it a property that references the itemNum. you can then retrieve that property in your onClick handler, so you can track the current itemNum, and assign it to a variable that's accessible in your moveForward() function.
or you could use the url property of your loaderinfo object to retrieve the image name and use the flash string methods to extract the jpg number and therefore the array index number.
Thanks for reply, been on holiday therefore late reply. But I try to move my functions out of StartLoad but then Flash complains that it can't find itemNum. Thats why I have them in there. I've been messing around with the url property with no luck, any advise on how to achieve this?