topical media & game development

talk show tell print

actionscript-misc-Caller.ax

actionscript-misc-Caller.ax [swf] flex


  package {
    import flash.display.*;
   
    public class @ax-actionscript-misc-Caller extends Sprite {
      
      private var shelteredObject:actionscript_misc_ShelteredClass;
      
      public function @ax-actionscript-misc-Caller () {
        shelteredObject = new actionscript_misc_ShelteredClass();
        callSecretMethod();
        displaySecret();
      }
      
      public function callSecretMethod ():void {
        var key:Namespace = shelteredObject.getRestrictedNamespace(this);
        if (key != null) {
          shelteredObject.key::secretMethod();
        }
      }
      
      public function displaySecret ():void {
        var key:Namespace = shelteredObject.getRestrictedNamespace(this);
        if (key != null) {
          trace(shelteredObject.key::secretData);
        }
      }
    }
  }
  


(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.