PDA

View Full Version : Frame by Frame Navigation


GinnyBhullar
03-26-2009, 11:03 AM
is it possible to have frame by frame navigation in FlashLite using AS 2.0 ?
I tried the following code:

next_btn.onPress = function(){
gotoAndStop(currentFrame+1);
}


This code is not working. Can somebody give me solution ?

Thommas
03-26-2009, 12:36 PM
next_btn.onPress = function()
{
gotoAndStop(currentFrame+1);
}

try _root.gotoAndStop(currentFrame+1); maybe ?

Or, you can name your frame "myFrame" and put :

next_btn.onPress = function()
{
_root.gotoAndStop("myFrame");
}