[flexcoders] addChild RemoveChild

2006-10-16 Thread learner
Hello all , Is there any way by which i can decide if the any component contains a particular component or not. something like this : box:: VBox = new VBox(); box.width = 100;box.height = 100; if(Vboxid[box]== undefined){ Vboxid.addChild( box );} box.x = Vboxid.mouseX; box.y =

Re: [flexcoders] addChild RemoveChild

2006-10-16 Thread Michael Schmalle
Hi,use; box:VBox = new VBox(); box.width = 100; box.height = 100; if(!Vboxid.contains(box)){ Vboxid.addChild ( box );} box.x = Vboxid.mouseX ; box.y = Vboxid.mouseY;You could use the name property of the box and do a more complicated check.'The above will only work if 'box' is not a local