all groups > flash actionscript > january 2007 >
You're in the

flash actionscript

group:

fix it


fix it rbr1234
1/13/2007 7:15:42 PM
flash actionscript: if (_root.ball._currentframe == 44) {
gotoAndPlay("lv2");
}

Re: Can anyone fix this simple actionscript mac monkey
1/13/2007 7:37:38 PM
is gotoAndPlay("lv2") trying to make the root timeline play from "lv2" because
I think that's what it's doing.

If you want the ball to go to "lv2"

then you'll need this..

if (_root.ball._currentframe == 44) {
_root.ball.gotoAndPlay("lv2");
}
Re: Can anyone fix this simple actionscript rbr1234
1/13/2007 7:40:16 PM
Re: Can anyone fix this simple actionscript mac monkey
1/13/2007 7:46:24 PM
Re: Can anyone fix this simple actionscript rbr1234
1/13/2007 7:54:32 PM
Re: Can anyone fix this simple actionscript mac monkey
1/13/2007 7:59:15 PM
I'm afriad I'm not too sure what the problem is. But I'd attach the script as a
movie script to the ball movieclip.

Then add an onEnterFrame event and place the if statement inside. I'd possibly
suggest that the if statement is only being called once, rather than being
called every time a new frame is entered, so it will never evaluate as true.

Hope that helps
Re: Can anyone fix this simple actionscript rbr1234
1/13/2007 8:04:04 PM
Re: Can anyone fix this simple actionscript aniebel
1/13/2007 8:14:17 PM
AddThis Social Bookmark Button