Sliding Menus - Step One: Setting Up the Document
Posted by : PhilS on Jul 29, 2008
You will need to set up an new Flash document and create a new Movie Clip.
- Open a New Flash Document: File - New (Ctrl N)
- If the General Tab is not selected, select it:

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**.Click: OK
Go to: Modify - Document (Ctrl J)
- Select an appropriate size. Mine is: 500 x 300 px
- If you wish select a background color. Mine is:
#660066 - Click: OK

1 comment
Add comment
Saulgarber
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