1 Reply Latest reply on Nov 29, 2012 5:11 AM by Ned Murphy

    Adding an ease to a hover scroll using action-script...

    LouiseCox

      Hi,

       

      Pretty new to action script, I've managed to pick up a simple code in AS1/2 to scroll the page left and right. I'm looking to add an ease into it, just a subtle one to make the clip feel a bit smoother. I have no idea how I would even begin to do this the code I've used is as below...

       

       

      _root.onEnterFrame=function(){

       

                if(_root._xmouse<50){

                flowchart.prevFrame ();

                flowchart.prevFrame ();

                }

                if(_root._xmouse>830){

                flowchart.nextFrame ();

        flowchart.nextFrame ();

                }

      }

       

       

      Hope someone can help.


      Thanks

      Louise