circa1977
10-08-2003, 08:11 PM
I have a slide in/slide out "nav panel" movie clip that's working great with one exception. Let me set up what I've built:
Frame 1, Timeline ActionScript Stops the movie. An onRelease exists for a button in the movie which Plays it again. This sets the Timeline going and begins the animation of the panel sliding out.
After the motion tween of the background shape, graphic symbols (nav labels), and clear buttons over each label, the movie stops. Timeline ActionScript has an onRollover, onRollout for each label. The onRollover for the label, Instance named "request1," performs the following:
new_color = new Color(request1);
new_color.setRGB(0xFF0000);
to change the color on rollover to red. onRollout uses the same code to change the color back to white and onRelease calls another function that changes content displayed in the movie.
Clicking the button described above for Frame 1 Plays the movie again, this time advancing it through the second half of the Timeline which slides the nav panel back in. When the Timeline reaches the last frame, it returns to Frame 1 where it stops again.
Two things:
1. When previewing the movie or viewing the published movie, all functionality tied to buttons and most playback performs as expected.
2. When dragging the head back and forth across the Timeline all playback performs as expected.
What's not working?
Any of the labels that changed color onRollover do not slide back in as they're expected to. If the cursor hasn't rolled over them, they're fine and follow the Timeline as expected. Basically, once they've been modified by ActionScript as described above, they seem to be removed from the Timeline.
Is there something I need to do to reattach these instances to the Timeline? I'm scouring the Help content, but I'm really not sure where to even start in this case.
Help! And thanks!!
Frame 1, Timeline ActionScript Stops the movie. An onRelease exists for a button in the movie which Plays it again. This sets the Timeline going and begins the animation of the panel sliding out.
After the motion tween of the background shape, graphic symbols (nav labels), and clear buttons over each label, the movie stops. Timeline ActionScript has an onRollover, onRollout for each label. The onRollover for the label, Instance named "request1," performs the following:
new_color = new Color(request1);
new_color.setRGB(0xFF0000);
to change the color on rollover to red. onRollout uses the same code to change the color back to white and onRelease calls another function that changes content displayed in the movie.
Clicking the button described above for Frame 1 Plays the movie again, this time advancing it through the second half of the Timeline which slides the nav panel back in. When the Timeline reaches the last frame, it returns to Frame 1 where it stops again.
Two things:
1. When previewing the movie or viewing the published movie, all functionality tied to buttons and most playback performs as expected.
2. When dragging the head back and forth across the Timeline all playback performs as expected.
What's not working?
Any of the labels that changed color onRollover do not slide back in as they're expected to. If the cursor hasn't rolled over them, they're fine and follow the Timeline as expected. Basically, once they've been modified by ActionScript as described above, they seem to be removed from the Timeline.
Is there something I need to do to reattach these instances to the Timeline? I'm scouring the Help content, but I'm really not sure where to even start in this case.
Help! And thanks!!