topical media & game development

talk show tell print

actionscript-book-FilterWorkbench-com-example-programmingas3-filterWorkbench-IFilterFactory.ax

actionscript-book-FilterWorkbench-com-example-programmingas3-filterWorkbench-IFilterFactory.ax [swf] flex


  package 
  {
          import flash.events.Event;
          import flash.events.IEventDispatcher;
          import flash.filters.BitmapFilter;
          
          // ------- Events -------
          [Event(name="change", type="flash.events.Event")]
          
          
          
Defines the common methods for the filter factory classes used in the FilterWorkbench application. Each @ax-actionscript-book-FilterWorkbench-com-example-programmingas3-filterWorkbench-IFilterFactory implementer has specific properties or methods for setting values for its specific filter. The interface's getFilter() method is used to retreive the filter in its current state. Although it can't be explicitly enforced by the compiler, each @ax-actionscript-book-FilterWorkbench-com-example-programmingas3-filterWorkbench-IFilterFactory implementer should provide a flash.events.Event.CHANGE event indicating that the filter has changed. For this reason @ax-actionscript-book-FilterWorkbench-com-example-programmingas3-filterWorkbench-IFilterFactory implementers must also implement flash.events.IEventDispatcher.

  
          public interface @ax-actionscript-book-FilterWorkbench-com-example-programmingas3-filterWorkbench-IFilterFactory extends IEventDispatcher
          {
                  function getFilter():BitmapFilter;
                  
                  function getCode():String;
          }
  }


(C) Æliens 27/08/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.