Now let's create a new layer in the MainSubMenu Movie Clip. We'll create a plane for our submenu here.
Let's draw a vertical rectangle and place it in the zero coordinates.
Then we paint it black.
Convert it to a Movie Clip.
And make it translucent.
We give it an instance name back.
Let's give its layer the same name.
Then we extend keyframes on timeline.
And create a new layer for the code.
We make new keyframes on it.
The first part of animation will show the plane, so we give frame label show.
And we set hide for the second part.
Let's put stop(); code for the to the first and the middle keyframes.
Let's create keyframes in the middle of our timeline. It will be the mouse overed state of submenu.
We put our clips up in the first keyframe so that they come from the top when animation plays. Don't forget to select both layers, with the holder (menuHolder) and the plane (back).
Let's also make them transparent in the first keyframe.
Then we create motion tweens and add easings.
In the final keyframes we put the clips down and make them transparent.
And, of course, we create motion tweens with easings on the second part of timeline.