PDA

View Full Version : button must play 15 frames and then...


darthnacho
08-29-2003, 09:19 PM
i have a button that suppose to play 15 frames when u click it, and after that 15 frames must go to another scene.
Now the button do this. i click and jump direct to the other scene.
actionsript in the button:
on (release) {
gotoAndPlay (16);
}
on (release) {
gotoAndPlay ("tecnico", 1);
}


PLEASE SEND HELP!!!!!

baby_annie
08-30-2003, 04:15 AM
I think you should change the code to:
on(rollOver) {
play();
on(release) {
gotoAndPlay("technico",1);
}
When u roll over the button, it will play its 16 frames(then it may loop if you dont release). If you press then release the button, the movie will jump to Scene named technico. Is it ok?

manuelarean
08-30-2003, 11:36 AM
Maybe if you put the last action (the one that takes you to the other scene), in the frame 16, it will work in the next way...

First when you release the button your movie will play the frames, and when get to the frame with the action, will go to the next scene...

PD I'm sorry about my english, but I'm spanish

magicwand
08-30-2003, 12:36 PM
if you have two button action i think second will override first
gotoAndPlay ("tecnico", 1);
put that code at frame 16
and
on (release) {
gotoAndPlay (1);
}
which will play 15frame animation iguess..

darthnacho
08-30-2003, 04:13 PM
the 2 codes don`t work.
it only run one code and forgot the other, but your idea don`t work either.

i need the button to play 15 frames and then goto the other scene. some kind of counter...


about puting the code in the last frame, it doesn`t work because i need to go to diferent scenes and the code in the frame will always send me to the same scene...

manuelarean
08-30-2003, 07:09 PM
gotoAndPlay("Scene 2", 1);