Re: [flexcoders] When to use constructor vs init?

2005-09-27 Thread Rick Schmitty
factory methods to create things vs. a = new MovieClip().   Hope that helps.     - Original Message - From: Rick Schmitty To: flexcoders@yahoogroups.com Sent: Monday, September 26, 2005 1:34 PM Subject: [flexcoders] When to use constructor vs init? When making a custom class, should you

Re: [flexcoders] When to use constructor vs init?

2005-09-27 Thread Aldo Bucchi
ovieClip(). > > Hope that helps. > > > - Original Message - > From: Rick Schmitty > To: flexcoders@yahoogroups.com > Sent: Monday, September 26, 2005 1:34 PM > Subject: [flexcoders] When to use constructor vs init? > > When making a custom class, should you ever

Re: [flexcoders] When to use constructor vs init?

2005-09-26 Thread JesterXL
-- From: Rick Schmitty To: flexcoders@yahoogroups.com Sent: Monday, September 26, 2005 1:34 PM Subject: [flexcoders] When to use constructor vs init? When making a custom class, should you ever put anything in the constructor?  class foo {function foo(){  // do stuff here like add event listeners?}

[flexcoders] When to use constructor vs init?

2005-09-26 Thread Rick Schmitty
When making a custom class, should you ever put anything in the constructor?  class foo { function foo(){   // do stuff here like add event listeners? } function init(){    super.init()    // do stuff here like add event listeners? } } Also should super.init() be first or last inside of i