PDA

View Full Version : gotoAndPlay trouble.


tongmuls
04-15-2008, 09:41 AM
I have a problem with getting my script to work the way i want it to.
Basically i have 4 thumbnails as buttons. So button 1 should respond to only 1pop up of picture. but when i click on button 1 twice, it jumps to the 2nd pop pop. this happens to all the buttons. please help! this is the script..

a1_btn.onRelease=function()
{
gotoAndPlay("p1");

};


a2_btn.onRelease = function (){
gotoAndPlay("p2");
}

a3_btn.onRelease = function (){
gotoAndPlay("p3");
}

a4_btn.onRelease = function (){
gotoAndPlay("p4");
}


a1button basically plays p1 and p2 if clicked repeatedly and i only want it to play p1 no matter how many times i play. thanks

Russ21282
04-15-2008, 02:03 PM
can you post ur fla?

tongmuls
04-15-2008, 02:51 PM
http://download.yousendit.com/D3832C0110F2BA23

this is the swf file~ i currently do not have the fla file. click on photos/illustrations/clips then the thumbnails.. click on each thumbnails more than once.. you'll see what i mean. thanks

Russ21282
04-15-2008, 03:27 PM
are "p1" "p2" etc on your main tiimeline?

tongmuls
04-15-2008, 03:46 PM
the MC of "p1" "p2" are in the main timeline

tongmuls
04-15-2008, 03:49 PM
http://download.yousendit.com/DB605F941BF2125A


this is the fla file... thanks for helping

Russ21282
04-15-2008, 05:06 PM
Instead of using:
gotoAndPlay("p1")

use:
gotoAndStop("p1")

tongmuls
04-15-2008, 06:15 PM
i tried changing everything to gotoAndStop but it didnt work~~

Russ21282
04-15-2008, 09:36 PM
I have changed them and it seems to work. see attached file

http://www.speedyshare.com/247520121.html

tongmuls
04-16-2008, 03:58 AM
can you upload again in another server??? sorry for the trouble.. speedyshare doesnt let me download.. the zip file ends up being 4kb everytime i download it.
thanks alot!

Russ21282
04-16-2008, 12:32 PM
Give this one a try, http://www.megaupload.com/?d=34SDQSB6

If you can't get it from here pm me your email and i'll email it to you.

tongmuls
04-16-2008, 02:01 PM
PM-ed you. thanks

tongmuls
04-16-2008, 03:10 PM
can you let me know what did you change in the fla? because i used the file that you sent me and edited everything to gotoAndStop and it worked just fine~ but i cant get it done with my own fla. does the flash version matters??

thanks

Russ21282
04-16-2008, 05:48 PM
i just changed these to gotoAndStop:


a1_btn.onRelease=function()
{
gotoAndPlay("p1");

};


a2_btn.onRelease = function (){
gotoAndPlay("p2");
}

a3_btn.onRelease = function (){
gotoAndPlay("p3");
}

a4_btn.onRelease = function (){
gotoAndPlay("p4");
}