1 Reply Latest reply on Sep 18, 2010 11:27 AM by ArrowUpRight

    Create custom Manager (PopUpManager-like)

    ArrowUpRight Level 2

      Hello People. I wonder how to create a my own custom class, accessible from any location in my project, like the PopUpManager of mx.managers, without using the 'new' command.

      for example, MyCustomManager.showAssistor (like PopUpManager.createPopUp)

        • 1. Re: Create custom Manager (PopUpManager-like)
          ArrowUpRight Level 2

          oops, sorry men i've got the solution.


          1. The Constructor does not have to exists in the Class definition file

          2. All the var and function declarations must have a static word


          public static function myFunk():void {}


          public static var myVar:String;


          once we imported the class into document, we can access all of its static properties and functions without instantiate it. wooof! Cool!