1 Reply Latest reply on Dec 2, 2008 6:37 AM by Newsgroup_User

    Squence of creating component

    mywork888
      I am trying to do a little exp of creating children and then dispatch event from the children to remove itself in the main app. The child component is a composition component. it has a button so that when the button is clicked, which will dispatch an event from the composition component to tell the main app to delete the composition component.

      I did a addChild(composition_component) in the main app constructor.

      But I keep on getting null-reference on the component inside of the composition_component.

      Not sure if there is anyone can help me with that, pls!

      Thanks.
        • 1. Re: Squence of creating component
          Level 7

          "mywork888" <webforumsuser@macromedia.com> wrote in message
          news:gh2hcu$e8j$1@forums.macromedia.com...
          >I am trying to do a little exp of creating children and then dispatch event
          > from the children to remove itself in the main app. The child component is
          > a
          > composition component. it has a button so that when the button is clicked,
          > which will dispatch an event from the composition component to tell the
          > main
          > app to delete the composition component.
          >
          > I did a addChild(composition_component) in the main app constructor.
          >
          > But I keep on getting null-reference on the component inside of the
          > composition_component.
          >
          > Not sure if there is anyone can help me with that, pls!

          Could you rephrase your question, possibly showing a bit of code?