It would be component.parent, not just parent unless you are working in the child's scope.
A better way would be to register an eventlistener (don't forget to remove it if it's not necessary anymore) for the child in the parent's scope. Why? To me it's the same problem you might run into when working with the stage. Sometimes the stage and parent references might be null -> that's the case when the child is not added. Best regards. --- In flexcoders@yahoogroups.com, "markflex2007" <[EMAIL PROTECTED]> wrote: > > Hi, > > I added a component to a container like this: > > container1.addChild(component1); > > now I want to change the property of container in the component.how to > set the reference of the parent container,I do not remember that. > > Please help me. > > I try parent.x = 1 but it doesn't work.Thanks > > > Mark >