Tha 4th Die'Mention beyond the Plane of Tranquility
Posts
85
Transition
Hello all!
Ive searched and searched but alas I have only riddled myself sick and the only cure is to reach out and ask....
My main time line has Five frame labels which distinguishes each section of my website (they are seperated by a keyframe 10 frames apart) The main time line reaches Frame 10 Label "HOME" and i have a rectangle animate out which is a movie clip instance "mcRed".
Below the Content window are buttons to each section on the main timeline. Im trying to figure out how make a button reverse frames in the mcRed and when the reversing is done go to Frame "Dennis" on the main timeline that has another mcInstance with content. Here is the action script attempt ive made
How are you reversing mcRed? With reverse play, or reversing the animation frames in a second part of mcRed?
The call to goto and stop on Dennis, should only be done at the end of the reverse process, and through the use of a variable holding the frame label to goto, since you can't hard code it.
Pseudo code...
Home(mcRed) is stopped after animating in.
On one of the lower buttons' press, and according to which button was actually pressed, a variable is set, let's say _level0.mynext_frame = "Dennis", and mcRed made to reverse...
code:
on(release){
_level0.mynext_frame = "Dennis";
// Code to reverse mcRed
}
Then at the end of mcRed's reversing process, a frame action that actually moves the playhead to the targeted frame...
_root.gotoAndStop(_level0.mynext_frame);
Thus, since _level0.mynext_frame holds the value of "Dennis" in this case, it will do just that.
If another value is set to _level0.mynext_frame on another button press, then it would eventually goto that other label.
You will have to use another variable to store the current selection, if your're going to animate all of your sections in and out.
For me, it would have to be in MX only format, not MX2004, and would have to be zipped up in case you're on Mac.
If zipping it up doesn't cut down on size enough, you can allways upload the package to some web space, and provide a link to download it from there. Or you could e-mail it to me.
But about to hit the sack... Will catch you in the morning.
I'll PM you an e-mail, if you want to mail it to me...
Tha 4th Die'Mention beyond the Plane of Tranquility
Posts
85
sent ya an email with an MX version of my file to check out. I tried the code on the button and unfortunately it didnt work. I could copy and paste frames instead of using the
Tha 4th Die'Mention beyond the Plane of Tranquility
Posts
85
thanks oldnewbie. I have been searhing the older posts and see youve helped in alot of "transition" questions. Im going to give up on the coding way of animation today cause i just cant get it to work and 3 days is enough but if you figure it out just let me know.
Tha 4th Die'Mention beyond the Plane of Tranquility
Posts
85
Transitions Tearing Me Apart
thanks again. It is still up there in the attachment just as it was three days ago Hopefully today is the day!!!!! I really just need to learn this basic navigation skill and im pretty sure i could go get stuck on something else harder and more tedious
As I thought... Senocular on actionScripts told you eaxctly what to do...
Only fixed up the "dennis" button & mcRed, but created the same on the "home" button in mcGreen. Results are not same, because both clips are not animated the same, but those 2 do work. Fix the others.
Tha 4th Die'Mention beyond the Plane of Tranquility
Posts
85
gonna check it out now and thank you for your time. I'll post in the other forums what i was doing wrong and how. have a good evening and bless you and your family