Flash / AS

Blend / WPF
ASP.net / PHP

Photoshop

Forums
Blog

About

 


FlashComponents
  Galleries
  Slideshows
  Menus
  Design & Effects
  Audio & Video
  User Interface
  Templates

 

 

Sliding Menu - Page 2
       by kirupa  |  19 February 2006

In the previous page, you created the content movie clips. Let's pick up from where we left off on this page.

  1. Select your content layer. All five of your movie clips should be selected. Lets localize the selected movie clips to a movie clip of their own. Press F8 (Modify | Convert to Symbol). Select the option for movie clip and press OK.
  2. The movie clip you created now contains all five content movie clips you created earlier. Give your newly created movie clip the instance name contentHold.
  3. Let's create our mask now. Insert a new layer above your content layer, and give your new layer the name mask:

[ insert a new layer called mask ]

  1. Ensure your mask layer is selected. On your stage, draw another rectangle. We want our rectangle to cover up the content1 movie clip visible on your stage (contained inside the contentHold movie clip).

    Therefore, set the width of your newly drawn rectangle to 250, the height to 200, the X offset to 50, and the Y offset to 0.
  2. With your rectangle neatly superimposed over your content1 movie clip, right click on the mask layer and select the Mask menu item. Your stage should now look like the following:

[ you should only see the masked content1 movie clip now ]

  1. Now, all you have left to do is add the ActionScript code. Create a new layer called actions. Right click on the empty keyframe and copy and paste the following code:

  1. Preview your animation by pressing Ctrl + Enter or by going to Control | Test Movie. You should now have a fully functional sliding menu.

Recreating the effect is only half the fun. In the next few pages you will learn the design choices that went into creating our sliding menu, and that will be wrapped up by a line by line explanation of how our code correlated with the design choices made.

Onwards to the next page!


kirupa.com's fast and reliable hosting provided by Media Temple. flash components
The Text Animation Component for Flash CS3
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.
Check out our high quality vector-based design packs! Flash Effect Components

Flash Templates
CSS Templates
Dreamweaver Templates

flash menus, buttons and components
Digicrafts Components The best flash components ever!
Entheos Flash Website Templates Free Flash Page Flip
flash components Buy and sell FLAs at Ultrashock!
Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com create flash slideshow as easy as 1,2,3
Learn how to advertise on kirupa.com