Home / Tutorials / Navigation / Sliding Menus /

Flash Tutorials

Sliding Menus - Step One: Setting Up the Document

Posted by : PhilS on Jul 29, 2008

 

5.0/5

You will need to set up an new Flash document and create a new Movie Clip.

  1. Open a New Flash Document: File - New (Ctrl N)
  2. If the General Tab is not selected, select it:
  3. Select Flash Document: (ActionScript 2.0 or 3.0)

      **Note**: If you are not sure which version of ActionScript to use just default back to ActionScript 2.0 as it will work on more computers. You can always change this to ActionScript 3.0 later by going to **File - Publish Settings - Flash - ActionScript version**.
    
  4. Click: OK

  5. Go to: Modify - Document (Ctrl J)

  6. Select an appropriate size. Mine is: 500 x 300 px
  7. If you wish select a background color. Mine is:#660066
  8. Click: OK

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.