I've got a movie clip on the main timeline.
The movie clip contains several small animations to be used in the background
as transitions
when a button (1 of 8) is pressed.
The animations themselves are simple, 10 frame things that:
move from left to right and fade up, stop (with stop() on frame),
and then move right slightly and fade out.
I've put test buttons on the main timeline, and they all work well. Well, at
least they all
go to the frame they're supposed to, and they all move, fade up, and stop
correctly.
If I click another button, takes me to the next transition and so on...
Nice, but...
I'd like it to be a bit more slick.
What I'd like it to do is:
when button is on main is clicked, I'd like the transitions to move in and
fade up as they
do already, and stop, as they do now.
Then, when another button is clicked, I'd like the second part of their
animations to play
(the move right and fade out), BEFORE moving on to the next transition.
Life would be simple if I knew people were going to press the buttons in the
same order
every time, but...
What I've been trying to figure out is this:
How do I tell the buttons (1-8) on the main timeline WHAT FRAME my movie clip
that's sitting
on the main timeline is on, so the movie clip knows to play the ending frames
of the transition
they're currently parked in the middle of before moving to whatever frame
label has been
activated by a button.
Or, I could say it this way:
main timeline button script in goofspeak:
on (release){
tell my movie clip to play the fade out frames from the frame where it's
currently parked
before it goes to where I've asked it to go.
}
I've tried doing this every way I could think of, but I'm new to actionscript.
Instead of putting a bullet through my head, I thought I might ask for help
first...
Thanks!