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 =
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
2 matches
Mail list logo