2 Replies Latest reply on Jul 12, 2006 7:54 AM by DJ_PSYMON

    ease out effect

    DJ_PSYMON
      right, i made this thing where it move in actionscript, so far i have this code

      this.onEnterFrame = function() {
      if (_root.whole_mc._y > 1.0)
      _root.whole_mc._y -= 2;
      }

      what do i need to add and where so that it eases out (by around 50% if you kno what i mean) as i can't figue it out fr myself.
      thanks all
        • 1. Re: ease out effect
          Level 7
          DJ PSYMON,

          > what do i need to add and where so that it eases
          > out (by around 50% if you kno what i mean) as i
          > can't figue it out fr myself.

          Flash includes something called the Tween class, which features an
          assortment if various easing types. Classes define objects, and just about
          everything you deal with in ActonScript is a class, including your movie
          clip (which is an instance of the MovieClip class). Check out the
          ActionScript 2.0 Language Reference for details. Just search "Tween class"
          without quotes and you'll see all sorts of sample code.


          David
          stiller (at) quip (dot) net
          Dev essays: http://www.quip.net/blog/
          "Luck is the residue of good design."


          • 2. Re: ease out effect
            DJ_PSYMON Level 1
            wow i found some cool stuff there, thanks for that :D