There are a few ways to do an exit/entrance animation. I usually have a function that is called when any button is pressed. It takes the name of the next page as its parameter. Here's an example:
Code:
var nextPage:String; // Holds the variable name of the next page
home_button.onRelease = function() { // The button's function
goNext("home")
}
function goNext(page:String) { // Sets the nextPage variable, and calls the exit animation
nextPage = page;
playExitAnimation(); // The exit animation function (not shown)
}
At the end of the animation you can use the "nextPage" variable to open the page you want to navigate to. You could have something like:
Code:
gotoAndPlay(nextPage); // This is if the pages are on different frames
Make sure that your buttons are each passing the right parameter (the data for the page that should open), and that the page reload is triggered at the end of whatever animation you're doing. You can use the nextPage variable to hold whatever string data you need, for whatever method you're using to navigate your pages.
For the cross-fade image effect, you've got to load the new image into a different MovieClip from the old one, and use the Tween class to fade it in once it's loaded.
(By the name "flash_noob", I'm thinking there may be some things here you haven't done before. Feel free to ask for more info or clarification. Hope this gets you pointed in the right direction though.)
Bookmarks