6 Replies Latest reply on Oct 30, 2007 3:46 AM by Boxing Boom

    Leaking filters?

    Boxing Boom Level 1
      Hi All,

      Believe it or not, I got myself a leaking actionscripted filter, what ever next? ;)

      Got a mc button, with drop shadow filter, on a completely different layer another mc takes on the properties of the button, onRollOver etc...

      Need friends fast!

      Kind Regards,

      Boxing Boom

        • 1. Re: Leaking filters?
          kglad Adobe Community Professional & MVP
          you're applying a dropshadow filter using actionscript to one movieclip button? if yes, post your code.
          • 2. Re: Leaking filters?
            Boxing Boom Level 1
            Hi kglad,

            Yes, its to a movie clip button, I am on the laptop at present, I will post code early tomorrow. Please if you remember, check back ;)

            Thanks for your time and consideration.

            (DAVID STILLER, I NEED YOU!) ;)

            Kind Regards,

            Boxing Boom
            • 3. Re: Leaking filters?
              Boxing Boom Level 1
              K http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=288&threadid =1309951&enterthread=yglad,

              The following link has the code concerned; I am using same code on different object.

              Kind Regards,

              Boxing Boom
              • 4. Re: Leaking filters?
                kglad Adobe Community Professional & MVP
                someone else is already helping on that thread.
                • 5. Re: Leaking filters?
                  Boxing Boom Level 1
                  Hi,

                  Yes, David Stiller has given me a lot of advise and help, I was just looking for a quick fix on this. Things like this, kinda send me a little nuts ;)

                  Thanks for having a look. Take care.

                  Kind Regards,

                  Boxing Boom
                  • 6. Re: Leaking filters?
                    Boxing Boom Level 1
                    Hi All,

                    Ever had one of these things happen to you, and made you feel like a complete FOOOOOOL!

                    Watch this (literally)

                    The following snippet of code allows the filters applied to bleed/leak across to other objects within that swf

                    buttOne_mc.orb_mc.filters = [gf,ds2];

                    buttOne_mc.onRollOver = function():Void{
                    this.orb_mc.onEnterFrame = function():Void{
                    gf.blurX += (100-gf.blurX)/5;
                    gf.blurY = gf.blurX;
                    filters = [gf,ds];
                    colorTrans1.rgb = 0xab1d37; // Reddish
                    trans1.colorTransform = colorTrans1;
                    buttOne_mc.reflection_mc._alpha = 60;{

                    delete this.onEnterFrame;
                    }
                    }
                    }


                    The following snippet of code performs as it should, no bleeding/leaks

                    buttOne_mc.orb_mc.filters = [gf,ds2];

                    buttOne_mc.onRollOver = function():Void{
                    this.orb_mc.onEnterFrame = function():Void{
                    gf.blurX += (100-gf.blurX)/5;
                    gf.blurY = gf.blurX;
                    this.filters = [gf,ds]; //this is why
                    colorTrans1.rgb = 0xab1d37; // Reddish
                    trans1.colorTransform = colorTrans1;
                    buttOne_mc.reflection_mc._alpha = 60;{

                    delete this.onEnterFrame;
                    }
                    }
                    }


                    The difference in the two snippets is; this.filters = [gf,ds];
                    I forget to use the key word this ;)

                    David Stiller pointed this out to me days ago, but I simply forgot to insert it.

                    Kind Regards,

                    Boxing Boom