Skip navigation
Wo Cao
Currently Being Moderated

creationComplete does not called for my groups

May 1, 2013 12:51 AM

<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"

         xmlns:s="library://ns.adobe.com/flex/spark" creationComplete="Creating_completed();">

Creating_completed()never called. Even after the Group object has been created.

 
Replies
  • Currently Being Moderated
    May 1, 2013 9:16 AM   in reply to Wo Cao

    That can happen if there is an “invalidation loop” caused by the children of the Group.  Sometimes the size and position of the children cannot be determined and the layout manager keeps trying to re-layout the children.

     
    |
    Mark as:
  • Currently Being Moderated
    May 1, 2013 9:26 PM   in reply to Wo Cao

    I think the only way you won’t get initialize is if the component is not added to the stage ever.

     
    |
    Mark as:
  • Currently Being Moderated
    May 2, 2013 2:11 PM   in reply to Wo Cao

    If you have Foo.mxml, it defines a class called Foo.  You would then do:

     

    Var foo:Foo = new Foo();

    addChild(foo);

     

    In the call to addChild, the initialize event should get dispatched.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points