PDA

View Full Version : paths


bahrami
02-17-2001, 02:03 PM
hello .I'm new on this forum. So excuse if I'm doing something wrog. But this's what I'm looking 4.
I have a movieclip with a button in it. and when I press the button I want it to take
me to say frame 10 on the stage. I'm using flash5. I think I have to make a text variable on frame10. and then on the button add _root..... something. I read about this in the tutorial section on this forum; but I couldn't figure out how to make this

Jesse
02-17-2001, 02:32 PM
on (press) {
_root.gotoAndPlay(10);
}

Our new tutorial covers these issues (Paths on buttons):
http://www.actionscripts.org/tutorials/beginner/Controlling_Different_TimeLines/index.shtml

Cheers

Jesse

bahrami
02-17-2001, 09:09 PM
when I type that.. the line gets yellow and it comments that my movie has to be exported as a flash 5 to use that action.. What am I have to do.

Jesse
02-18-2001, 12:28 AM
Well you said you were using FLash 5. Taht's a valid FLash 5 command. I would recommend you export your movies in FLash 5 format simple because it's better. To change export format use Ctrl Shift F12 in Flash (when you file is open) and check the flash tab.

Alternatively you can use the redundant tags:

on (press) {
tellTarget ("_level0") {
gotoAndPlay(10);
}
}


That should work for FLash 4 exports.

Cheers

Jesse