Friday, 21 September 2012

Scrolling Picture Galery

Today I made a scrolling picture gallery in Flash. I got it to scroll backwards and forwards. The code was really easy when you figure it all out. Here's what I used:


First one:
stop();
nextBtn.onPress = function()
{
 nextFrame();
};
backBtn.onPress = function()
{
 gotoAndStop(4);
};

Second one:
stop();
nextBtn.onPress=function(){
 nextFrame();
}
backBtn.onPress=function(){
 prevFrame();
}

Thrid one:
nextBtn.onPress=function(){
 nextFrame();
}
backBtn.onPress=function(){
 prevFrame();
}

Last one:
gotoAndStop(1);
 

No comments:

Post a Comment