draw transparent pixels using the graphics object of the UIComponent:
componentInstance.graphics.beginFill(0,0); componentInstance.graphics.drawRect(0,0,componentInstance.width, componentInstance.height); - Dan On 07 Mar 2007 08:49:59 -0800, Roman Protsiuk <[EMAIL PROTECTED]> wrote:
You can pass along this events to your component from the application itself. E.g. // in application: private function onMouseClick(event : MouseEvent) : void { yourComponent.onMouseClick(event); } R. On 1/2/07, Reid Priedhorsky <[EMAIL PROTECTED]> wrote: > > Hi folks, > > I have a component which is a subclass of UIComponent. I would like it > to receive mouse events (MouseDown, MouseUp, and MouseMove, > specifically) even in areas where there are no children and I have not > drawn using this.graphics. > > Is this possible? Do any of you have ideas on how to do it or where to > find more info? > > (I could work around it by drawing the background manually, but that > seems awkward. I was hoping for some kind of switch or setting. This is > Flex 2.) > > Thanks for any help, > > Reid >