Thanks 4 the reply Hissam, but the ur piece of code doesn't solve my
problem.

In my code myCircle1 is an object of a user defined class that
inherits the UIComponent class. It is not an object of an image class.
Does this point really matter though ????


On Sep 9, 5:21 pm, HISSAM <[EMAIL PROTECTED]> wrote:
> try the following
>
> tmpImage.addEventListener(KeyboardEvent.KEY_UP,delImage);
>
> private function delImage(event:KeyboardEvent):void
> {
> trace(""+event.keyCode);
> var tmpCanvas:Canvas=objCurrentFrameArray[0] as Canvas;
>             var strCurrentSelectImage:String= event.currentTarget.id;
>
>             if(event.keyCode==46 && event.currentTarget.parent==tmpCanvas)
>             {
>              event.currentTarget.drawFocus(false);
>              tmpCanvas.removeChild(event.currentTarget as Image);
>             }
>
> }
>
> --
> -----------------------------
> Warm Regards,
> HISSAM,
> Soft Engg,
> iThinkLabs Pvt Ltd.
> India.
> website:http://www.ithink-labs.comhttp://www.yureekah.com
> ------------------------------

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to