4 Replies Latest reply on Oct 7, 2007 6:47 PM by serg2049

    Blur effect using actionscript

    serg2049 Level 1
      How can I make a blur effect using actionscript, not the built-in effect for which I have to use a tween?

      Any codes you can give me or links to tutorials?
        • 1. Re: Blur effect using actionscript
          Level 7
          serg2049 wrote:
          > How can I make a blur effect using actionscript, not the built-in effect for which I have to use a tween?
          >
          > Any codes you can give me or links to tutorials?

          Search help files for new flash.filters.BlurFilter
          It show in steps how to set each filter using action script, including all the
          parameters, like size

          --
          Best Regards

          Urami


          --
          "Never play Leap-Frog with a Unicorn."


          <urami>
          If you want to mail me - DO NOT LAUGH AT MY ADDRESS
          </urami>
          • 2. Re: Blur effect using actionscript
            serg2049 Level 1
            Thanks I'll check it out,
            • 3. Re: Blur effect using actionscript
              serg2049 Level 1
              Ok, Using flash help file sI did this:

              import flash.filters.BlurFilter;
              var rect:MovieClip = createRectangle(100, 100, 0x003366, "BlurFilterExample");

              var blurX:Number = 30;
              var blurY:Number = 30;
              var quality:Number = 3;

              var filter:BlurFilter = new BlurFilter(blurX, blurY, quality);
              var filterArray:Array = new Array();
              filterArray.push(filter);
              mymovie_mx.filters = filterArray;

              It did work, but I have 2 problems with this, one I need it to go from 100% blur to 30%blur.
              But my biggest problem is, part of the code I'm using in the animation is actionscript 1, and the above solution is actionscript 2.

              Can anyone give me an actionscript 1 solution?
              • 4. Re: Blur effect using actionscript
                serg2049 Level 1
                ANYONE?

                If it's too much to ask to post the code in actionscript 1 a link will do, please?