3 Replies Latest reply on Dec 14, 2006 9:03 AM by kglad

    Easing Filter Effects

      Ok. Let me start by saying I'm getting better at Actionscript but I'm still far from where I need to be. Hopefully you guys can help.

      I am trying to pull off an effect where a logo emerges from the background using "DropShadowFilter". The Background is white and the logo is white so I only want to animate the "DropShadowFilter". Doing this in the timeline makes it look a little choppy. So I thought I would try using actionscript.

      Here's what I have so far to make the mc "emerge":


      import flash.filters.*;
      var ds:DropShadowFilter = new DropShadowFilter(0, 0, 0x000000, 0, 0, 0, 1, 3, false, false, false);
      mc1.filters = [ds];
      mc1.onEnterFrame = function() {
      this.onEnterFrame = function() {
      ds.blurX += (10-ds.blurX)/10;
      ds.blurY += (10-ds.blurY)/10;
      ds.alpha += (10-ds.alpha)/10;
      mc1.filters = [ds];

      Yes, this code does the job, but, Is there a way to add Robert Penner's Easing to this? What I'm looking for specifially is the "Elastic.EaseInOut" added to it so that it will have a liquid type of effect.

      Thanks in advance. I hope I'm explaining this properly.