On 3/15/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:

>  PS Is it convention now that you put all child creation calls in an if() 
> statement? I thought createChildren() only ran once. Did this change in Flex2?
>

`createChildren` only runs once, but a subclass can override
`createChildren` and create a child object different there.

 function createChildren()
 {
  if (!titleBar)
  {
   // if subclass has not created the title bar, create it here
   titleBar = new ...;
  }

  super.createChildren();
 }

The superclass's `createChildren` is called last.

Manish


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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to