Buttons as clip triggers

Ok…i’ am yet to find an elegant solution to this problem, i wonder if anybody knows…

let’s say that i have 3 buttons in a menu and 3 clips(i say 3 to explain the scenario, i want it to work with n buttons and n clips).

each clip has a timeline-based animation going from frame 1 to frame 20.

if i click on button one i want clip one to start the animation and stop at frame 20.

then if i click on clip 2 i want first clip 1 to play the animation reversed (20 ->1) and only AFTER to play clip2 from frame 1 to 20.

now if i click on button 3 i want clip 2 o play the animation reversed (20 ->1) and only AFTER to play clip3 from frame 1 to 20.

of course this has to happen with any button clicked in any order: if there is a clip with the animation at frame 20 then play it in reverse and then start the related clip animation.

I managed to do it with 2 buttons and clips but already adding the 3rd one gets tricky…i am struggling to write the code properly…i’m sure i am just overlooking something…

cheers for advice…

D

There’s a great tutorial here on the kirupa site called transitions between externally loaded swfs which I think will be exactly what you’re looking for. I’ve used the technique quite often. It’s a winner! :slight_smile:

Thanks for your reply graylensman, although i forgot to mention that the clips are movieclips within the same movie. I dont want to load external swf’s as i dont want to have a preloader each time the user clicks a menu button :slight_smile: