onRelease issue on dynamically created clips

dilly

Born

Posts: 2

3+ Months Ago

I'm sure this is just a user error on my part.

I have an instance of a movie clip and use it to dynamically generate 12 new clips. Each clip has an onRelease attached to it as a function. There is another clip on the stage (textholder) with a variable text field (cliptext) attached to it. What I want to do is change the contents of the variable text field depending on which dynamically generated clip the user clicks on. Code thus:

When playing the movie, all the clips are in place, I can click on each one and everything works, except the text that appears in _root.textholder.cliptext is _always_ 'hello world 13'. Like I said I'm sure this is my fault, looks like the function is resetting events - just my head is so filled with PHP and JS I can't get it around this one. Any help would be appreciated. Thanks in advance.