import mx.containers.Canvas;
private function onCanvasClick(event:MouseEvent):void
{
if (event.target is Canvas)
{
// do canvas click stuff
}
}
private function onButtonClick():void
{
// do button click stuff
}
-TH
--- In [email protected], "rockorgames" <eguilhe...@...> wrote:
>
> hello, im trying to this,
>
> a canvas and a button inside the canvas..
>
> and both the button and canvas has click events.. my problem is:
>
> if the user clicks the button, both the button click event and the
> canvas click event are firing.. is this something impossible to do ?
>