Sliding Menus - Step Four: Frame 1 Actions
Posted by : PhilS on Jul 29, 2008
- In the Timeline click on the Insert Layer button: **Insert Layer **

Rename the new Layer: Actions
![][2]In the Actions Layer select: Frame 1
- If the Actions Panel is closed, open it: Window - Actions (F9)
If Script Assist is on, Switch it off:

**Note**: With Script Assist on you cannot type in the Actions Panel.Type (or copy & paste) the following actions:
*yTargetMC = 100;* **Note**: The top of the Actions Panel says: **Actions - Frame** ![][4] *Actions Panel.* **Note**: The number 100 will determine where the Movie Clip will stop when the frame is loaded. You may want to come back and place a different number once you have tested the Movie Clip. The higher the number the further down the page the Movie Clip will roll and visa versa.

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