I set the fillAlphas and fillColors to be the same as the default in 
the event handler. This works but I don't know if this is the proper 
way to do this.

this.setStyle("fillAlphas",[this.getStyle("fillAlphas")[0], 
this.getStyle("fillAlphas")[1]]);

this.setStyle("fillColors",[this.getStyle("fillColors")[0], 
this.getStyle("fillColors")[1]]);
                        
Additionally, if i moveover the mouse to the button, blue colored 
border appears. Any ideas on how i can get rid of this?

--- In [email protected], Alex Harui <aha...@...> wrote:
>
> There is no capture phase at the target.  Try using a higher 
priority instead, or just set the overSkin to be the same as the 
upSkin
> 
> From: [email protected] 
[mailto:[email protected]] On Behalf Of yms0411
> Sent: Thursday, January 29, 2009 8:26 PM
> To: [email protected]
> Subject: [flexcoders] Re: Does anyone know how to disable mouseover 
for a button.
> 
> 
> not really.
> when mouseover event triggers, I want to cancel the default
> highlighting of the button (not necessary when u have a touch 
screen)
> 
> --- In [email protected]<mailto:flexcoders%
40yahoogroups.com>, Guy Morton <guy@> wrote:
> >
> > button.enable=false is not what you want?
> >
> >
> > On 30/01/2009, at 1:54 PM, yms0411 wrote:
> >
> > > Hi i'm making a kiosk application at the moment and I want to
> disable
> > > all mouse actions on a button such as mouseover, rollover,
> rollout,
> > > etc
> > >
> > > I've extended Button and wrote the following code on the
> constructor
> > >
> > > this.addEventListener(MouseEvent.MOUSE_OVER, ignoreMouseEvent,
> true);
> > >
> > > private function ignoreMouseEvent(event:MouseEvent):void
> > > {
> > > event.stopPropagation();
> > > }
> > >
> > > I've tried this, but it doesn't seem to be working.
> > > Any suggestions to how i can approach this?
> > >
> > > Thanks
> > >
> > >
> > >
> >
>


Reply via email to