0 Replies Latest reply on Feb 23, 2011 8:57 AM by robglobal

    Best practice - applying Filters

    robglobal

      What's the best practice in terms of performance versus code reuse, when applying filters?

       

      Right now, I see 3 ways to specify a filter:

       

      1. as a <mx:filter> or <s:filter>

       

      2. in actionscript:

       

      var glowFilter:GlowFilter = new GlowFilter();

       

      --OR--

       

      3. in SVG:

       

      <s:rect>

        <s:filters>
             <s:DropShadowFilter blurX="20" blurY="20" alpha="0.32" distance="11" angle="90" knockout="true" />
        </s:filters>

      </s:rect>

       

       

       

      What's the best way to apply this, in terms of performance? Thanks.