Wrox Home  
Search P2P Archive for: Go

  Return to Index  

flash_programming thread: GotoAndPlay statement


Message #1 by wonders59@y... on Sun, 7 Oct 2001 17:52:38
You should be using a variable with a string value instead of a number, for 
example:

label = 3;
mc.gotoAndPlay(3);

This will go to the frame 3 of the movieclip. If you want to go to frame 
labels, use the following options:

label = 3;
mc.gotoAndPlay(String(label));

label = "3";
mc.gotoAndPlay(label);

cheers
jonas galvez



At 17:52 07/10/01 +0000, you wrote:

>how can i allow the user to goto a specific part of a sound clip that
>contains a label
>i have an input textbox that allows the user to enter a number..a sound
>clip that is divided into labeles ( 0,1,2..etc)& a button that contains
>the following action
>on release{
>GotoAndPlay(myVar);
>}
>where my var is a variable set by the user using the input box
>i want the user to enter a number that indicates a label..& be able to
>jump to that part of the sound clip..i know i should be using Goto & play
>statement..but it doesn't accept variables..how can i do that??
>


  Return to Index