Nice trick. But this seems to work as well but simpler.

class com.Application{

public function Application( target ) {
 target.__proto__ = __proto__;
 this = com.Application( target );
}

}

----- Original Message ----- From: "Weyert de Boer" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Thursday, July 20, 2006 8:31 PM
Subject: Re: [Flashcoders] Can I assign a Class to the main timeline?


You might want to try this, below the contructor of the Application-class. This will be come the class associated with the main class. Seems to work for me.


   /**
    *  Constructor
    *
    *  @param    timeline    The timeline
    */
   public function Application( target ) {
       super();
//
       target.__proto__ = __proto__;
       target.__constructor__ = com.Application( com.Application );
       this = com.Application( target );
        com.Application( target );
   }
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to