Home / Tutorials / Navigation / Sliding Menus

Flash Tutorials

Sliding Menus

Posted by : PhilS on Jul 29, 2008

 

5.0/5

Sliding Menus Moving an Object on Roll Over using ActionScript In this Flash tutorial you will learn an animation technique makes things slide on and off the Stage. This could be used to slide Menus on and off. It could also be used to slide photos, forms, animations or any other objects. In fact you can use it to move multiple objects on and off screen all at the same time. Some can come from the top or bottom whilst other can slide in and out from from the sides.

Tutorial overview

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.