Yes, mouseEnabled = false works fine. 
 
I'm confused about the two properties and what the difference is, and why 
enabled=false doesn't work.

________________________________

From: [EMAIL PROTECTED] on behalf of Bob Wohl
Sent: Tue 7/1/2008 3:53 PM
To: Flash Coders List
Subject: Re: [Flashcoders] SimpleButton enabled vs mouseEnabled



does  mouseEndabled=false work for you?



B.

On Tue, Jul 1, 2008 at 12:29 PM, Alexander, Mary <[EMAIL PROTECTED]>
wrote:

> I'm hoping someone can clarify this situation:
>
> AS3 - Flash IDE
>
> I have created a SimpleButton. I'm just trying to do simple Next/Back
> navigation where you disable Back on the first page and Next on the last
> page.
>
> at button creation I disable the button with:
>
> myButton.enabled = false;
> myButton.alpha = .5;
> myButton.addEventListener(MouseEvent.CLICK, btnClicked);
>
> My button is dim, the cursor doesn't change, BUT, you can still click on it
> and the event handler still executes.
>
>
> If I change it to:
> myButton.mouseEnabled = false;
> myButton.alpha = .5;
>
> All is well.
>
> Why is there an enabled property for SimpleButton if it doesn't really work
> as advertised? Can anyone clarify this? Is there some situation where one
> can/should use the enabled property?
>
> Thanks for your sage advice,
>
> Mary
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to