topical media & game development

talk show tell print

lib-flex-animation-code-10-org-as3lib-utils-AbstractEnforcer.ax

lib-flex-animation-code-10-org-as3lib-utils-AbstractEnforcer.ax (swf ) [ flash ] flex


  package org.as3lib.utils
  {
          import org.as3lib.utils.strictIs;
          import org.as3lib.errors.AbstractError;
          
          public class @ax-lib-flex-animation-code-10-org-as3lib-utils-AbstractEnforcer
          {
                  public static function enforceConstructor(instance:Object, className:Class):void {
                          if (strictIs(instance, className)) {
                                  throw (new AbstractError(AbstractError.CONSTRUCTOR_ERROR));
                          }
                  }
                  
                  public static function enforceMethod ():void {
                          throw (new AbstractError(AbstractError.METHOD_ERROR));
                  }
          }
  }


(C) Æliens 19/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.