11/23/2010 12:38:13 AM
Title:
flash button
I am creating a flash website.
Each page appears with an animation.
And I need each page to be disappear with a small animation.
I need the actionscript for this.
When the button home is clicked the previous page must disappear with an animation and athe home page should apper with the necessary animation.
Please answer.
11/23/2010 3:14:22 AM
say you are on some page other than home. Then on click of home set a variable myPage="home" and simply play the disappear animation. On last frame of disappear animation check the variable and jump to start animation of home page.
if(myPage== "home"){
//play home frame which is 1 or whatever you have
gotoAndPlay(1);
myPage="";
}
11/24/2010 8:41:43 PM
Thank you very much Duke.