Re: [flexcoders] Does anyone know how to disable mouseover for a button.

2009-01-30 Thread Martyn Bowis




mx:Button enabled="false" ... /

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
  
  
  
 
  
__ Information from ESET NOD32 Antivirus, version of virus
signature database 3811 (20090129) __
  
The message was checked by ESET NOD32 Antivirus.
  
  http://www.eset.com
 

-- 

Dr Martyn Bowis (PhD Engineering)
Director Net Design Ltd
New Zealand
www.netdesign.co.nz
Mob: +64 21 932626
Skype: mbowis
MSN: mbowis @ msn.com

Truth brings Freedom

The content of this email is confidential.
If you are not the intended recipient,
you must not use or distribute this
information in any way, shape or form.
Please notify the send of this error.
Thank you.





Re: [flexcoders] Does anyone know how to disable mouseover for a button.

2009-01-30 Thread Nate Beck
He doesn't want to disable the button... He just doesn't want the button to
change it's look when he rolls over it with the mouse.

The way I've done it in the past is to make the upState and the overState
the same.

HTH,
Nate

On Thu, Jan 29, 2009 at 7:06 PM, Martyn Bowis mar...@netdesign.co.nzwrote:

 mx:Button enabled=false ... /

 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



 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 3811 (20090129) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com


 --
 
 Dr Martyn Bowis (PhD Engineering)
 Director Net Design Ltd
 New Zealand
 www.netdesign.co.nz
 Mob: +64 21 932626
 Skype: mbowis
 MSN: mbowis @ msn.com
 http://www.netdesign.co.nz/
 Truth brings Freedom
 
 The content of this email is confidential.
 If you are not the intended recipient,
 you must not use or distribute this
 information in any way, shape or form.
 Please notify the send of this error.
 Thank you.




-- 

Cheers,
Nate

http://blog.natebeck.net
LogoForBanner.gif

[flexcoders] Does anyone know how to disable mouseover for a button.

2009-01-29 Thread yms0411
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



Re: [flexcoders] Does anyone know how to disable mouseover for a button.

2009-01-29 Thread Guy Morton

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