Alright, let's assue that you had your first frame, and it had a couple of buttons on it. let's say that we wanted to have it so that, each time one of those buttons was clicked, the first frame would fade into another frame, and a different frame for each button pressed. Now, to create this effect, first create a new flash file. Then, create your first frame, where you want the fade to begin, along with your buttons. Now, to create the first fade, copy and paste the first frame into an empty frame somewhere. Then, on the first frame's button's actionscript, have it go to that frame and play. From that frame on, have the fade in place. At the point where you feel the fade should stop, have a stop command in the actionscript for that frame. Do this for any or all of the buttons, if you would like all of them to fade differently. To have each thing fade back into frame 1, copy a keyframe of the finished fade into another empty space on your timeline, and then have another button, that goes to and plays from that frame. at that frame, the fade will begin again, fading back into the first frame. in that copy's actionscript however, put a piece of actionscript to have it go back to frame 1, so that whoever is clicking the buttons will still be able to click buttons again. If you do this, you can have multiple fades, all from the same page. This works very well if you have a room in a game, with multiple exits.
|» Level Basic|
Rating: 3 Votes: 81
|Another one of those weird people, who find Flash and instantly become addicted to it.|
|Download the files used in this tutorial.|
|Download (0 kb)|
|More help? Search our boards for quick answers!|