First off, I was not sure what to put in the title because I don’t know how the following thing is done.
Ok, here goes. If you look at the following site, you’ll notice that there is a nice transition as buttons are pressed, example: if you are in the about us page and click on our work, the about us button slides nicely back into position as the our work button falls into place, corresponding movies below also slide in and out.
I can create sites and know how to make buttons etc, If I’D made that site, when a person clicked the our work button, I would NOT be able to make the other button slide back into place but WOULD be able to change pages below without the nice transitions. Am I making sense? I am now ready to learn this skill and hope you can help me out or point me in the right direction towards tutorials
Here is an example of how the buttons could work. You might want to also run a search for “transitions” on the forum. There is even a tutorial on transitions here on kirupa.
That’s very helpful.
Thank you for taking the time to make that it is greatly appreciated. I didn’t realise there would be so much actionscript involved. Now I wonder how they got the movies below to load in and out so smoothly, but thats something to figure out later. If you ever have any spare time in the future and you can figure this out too. That would be fantastic.
Hi brintonwhite. Each button in my site is within an MC which plays forwards to down state and then stops on play agian the animation is just reversed!
Now on each button you have to put a check in to see what state each other button is in using _currentframe!
This does take along time, but worth the effect I think.
Same goes with the main movies, they are loaded into levels or you could use an empty movie clip and load then into that!
I dont know anything about the “current” frame you mention. Can you remember if you used online tutorials to learn and do you have a link to them?
I am very unsure how you get one of the main movies (the main ones with the info) to unload itself and then another one flies in to take its place. This is making my brain ache trying to figure it out. I can do this sort of thing in a very static sort of way as you will see at the following site, but it lacks that bouncing in and out on the press of a button that you have achieved.
Well you have a really nice site there and it seems to me that you are loading in the different section ok, Do you use levels?
Just think of it in a logical way, right it down on to paper and make a flow chart, it really does help!
Here’s an example:
[AS]
if (_root.anothermovie._currentframe == 15) {
tellTarget ("_root.anothermovie") {
play ();
}
}
[/AS]
This checks to see if another movie is at a certain frame, if it is then tell it to do something!
On your main stage have frame 20 (for instance) as your first section. if you press to go to another section have that current movie play (to do what evr you want it to do, like fade out) and put a check to see if the cuurent frame of that movie has finished, then load your new movie!
I am still learning, and there may be better ways to do this, just have a play and let me know.
Thanks kev, I’ll look into it. Glad you like my site. I only consider myself very much at the beginners stage but I’ll get there.
I don’t use levels, I use empty movie clips, I tried levels once and yes, you guessed it, it didn’t work (I could figure it out if I really tried though)