PDA

View Full Version : button enable/disable


KTA
02-28-2008, 09:12 AM
if you have a button on layer 1 and movie clip on layer 2 (above) covering the button why can I still click/rollover the button.

I wonder if there is a way to prevent this. I don't think I ever ran into this problem until tonight... err!

I'm sure its a depth issue or something......

the binary
02-28-2008, 10:16 AM
either you 'disable' your button or assign an event to your movieclip, which then cover your button..

cheers

KTA
02-28-2008, 12:22 PM
really? With this situation I can disable those buttons... should I use that old myClip.useHandCursor = false work around or is there something better?

asf8
02-28-2008, 01:10 PM
really? With this situation I can disable those buttons... should I use that old myClip.useHandCursor = false work around or is there something better?

http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary518.html
&
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002453.html

myMovieClip.enabled = false;
// events are no longer invoked

http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary580.html
&
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002529.html

myMovieClip.useHandCursor = false;
//Boolean value that indicates whether the hand cursor displays

You might also run into this at some point also, concerning buttons (for future reference)
senocular.com - Dealing With Flash Button Event Capturing (http://www.senocular.com/flash/tutorials/buttoncapturing/)
senocular.com - Event Bubbling with Buttons (http://www.senocular.com/flash/source.php?id=0.160)

KTA
02-29-2008, 09:29 AM
got it :)

muchas gracias

asf8
02-29-2008, 02:16 PM
got it, muchas gracias

Su bienvenida, me alegro de ayudar.

(Hopefully thats correct, its what google translated for me ;-)

;)