Hi all,

Is it possible to destroy child by specifying x,y coordinates.

I used createChild() to draw square.

--------------code-start------------------------------------------
var xvalue:Number=100;
var yvalue:Number=100;

 var ref_mc1 = 
myCanves.createChild(mx.containers.Canvas,undefined,{percentWidth:100, 
percentHeight:100});       
ref_mc1.fillRect(xvalue, yvalue, xvalue+8, yvalue+8, 0x000000, 100);
-------------code-end---------------------------------------------


Now I want to delete it by specifying  xvalue, yvalue. How can I 
specify x,y coordinates to getChildIndex(). Is it possible?


--------------code-start------------------------------------------
var xvalue:Number=100;
var yvalue:Number=100; 

var iChildIndex:Number = myCanves.getChildIndex(event.target);
myCanves.destroyChildAt(iChildIndex);

-------------code-end---------------------------------------------


Thanks,



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to