[flexcoders] Re: Canvas with MouseEvent and Button with MouseEvent

2008-12-31 Thread Tim Hoff
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 flexcoders@yahoogroups.com,

[flexcoders] Re: Canvas with MouseEvent and Button with MouseEvent

2008-12-31 Thread rockorgames
thx man, worked great ! --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: import mx.containers.Canvas; private function onCanvasClick(event:MouseEvent):void { if (event.target is Canvas) { // do canvas click stuff } } private