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 init()?


I've seen examples using either, and sometimes both


Thanks!


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to