Im making a scrolling image gallery
basically i have 2 movieclips inside a main movieclip, MC_a and MC_b.
MC_a animates the scrolling effect of the thumb panel. within which there are 15 buttons.
MC_b has 15 large photos arranged in 15 frames. (1 photo per frame).
what i want to do is when i press a button in MC_a it will gotoAndStop at the frame in MC_b displaying the large photo.
I've tried placing script in MC_b in a layer called "action" and extending it to 15 frames:
I did this for all 15 buttons but none of them works. btw, i am using actionscript 3, Flash CS5
Why don't you try coding things from the main timeline, or from within the timeline of the main mc instead of reaching back with root targeting. You could give your buttons in MC_a the same names as the frame labels in MC_b and then you could have just one event handler function that all the buttons share...
From the Main movieclip's timeline (not the root) it could look something like...
wow! that worked fantastic thank you!