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
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
--
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?}
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
4 matches
Mail list logo