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

    Best practice - applying Filters

    robglobal Level 1

      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();




      3. in SVG:



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





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