Home / Tutorials / Navigation / Sliding Menus /

Flash Tutorials

Sliding Menus - Step Three: Place the Movie Clip on the Stage

Posted by : PhilS on Jul 29, 2008

 

5.0/5

Take the Movie Clip out of the Library and place it on the Main Stage.

  1. Open the Library: **Window - Library **(Ctrl L or F11)
  2. Drag your new Movie Clip onto the: Main Stage
  3. Place you Movie Clip just: Below the Main Stage

      **Note**: It is best if the Movie Clip is just above or below the Main Stage so when the frame loads the Movie Clip rolls into view. I placed my Movie Clip just below the Main Stage. If you want the Movie Clip to roll in from one side place the clip to the left or right of the Main Stage (in the ActionScript that follows you will need to swap all the Y's for X's).
    
  4. If the Property Panel is closed, open it: Window - Properties - Properties (Ctrl F3)

  5. In the Property Panel give the Movie Clip an Instance name: MC

      ![][1]
    
      **Note**: The name **MC** is specific to the instance on Stage and does not relate to the name of the symbol in the Library.
    

1 comment

Add comment

  • It's wanderful, I made it with pictures and it work nice.

    But I'm trying to make the image zoom and move in different places with two buttons and it goes to the same place (X & Y)... I tried with this:

    Button 1

    on (rollOver) { yTargetMC = 80; xTargetMC = 80; _xscaleMC = 400; }

    Button 2

    on (rollOver) { yTargetMC = 60; xTargetMC = 60; }

    Movie Clip

    *onClipEvent (enterFrame) { yMC = getProperty(_root.MC, _y); moveMC = _root.yTargetMC - yMC; setProperty(_root.MC, _y, yMC + (moveMC/10)); }

    onClipEvent (enterFrame) { xMC = getProperty(_root.MC, _x); moveMC = _root.xTargetMC - xMC; setProperty(_root.MC, _x, xMC + (moveMC/10)); }

    onClipEvent (enterFrame) { xMC = getProperty(_root.MC, _xscale); scaleMC = _root.xTargetMC - xMC; setProperty(_root.MC, _xscale, xMC + (scaleMC/40)); }

    onClipEvent (enterFrame) { yMC = getProperty(_root.MC, _yscale); scaleMC = _root.yTargetMC - yMC; setProperty(_root.MC, _yscale, yMC + (scaleMC/40)); }*

    It didn't work fine... Could you help me?

    Tx Saul



    #  /  PM  /  posted on Apr 15, 2011
Please login to post comments.