all groups > flash actionscript > april 2006 >
You're in the

flash actionscript

group:

blocking mouse events


Re: blocking mouse events DMennenoh
4/27/2006 4:46:43 PM
flash actionscript:
You do the same thing really. Put a movie clip over it with alpha at 0 - and
put mouse handlers on it:

myClip.onRollOver = function(){
}
myClip.onRelease = function(){
}

etc... just put empty functions for whatever events you want to block.

--
Dave -
Adobe Community Expert
www.blurredistinction.com
www.macromedia.com/support/forums/team_macromedia/

blocking mouse events NodeNode
4/27/2006 8:31:11 PM
is a there a simple way to "grey out" an area and block mouse events.
I remember in Director I could put a sprite on top of the others and block all events - how do I do that in flash?
Re: blocking mouse events TimSymons
4/27/2006 11:31:42 PM
Also, to hide that you have an invisible movieclip with mouse events on it set
the useHandCursor property to false. Continuing the above example...

myClip.useHandCursor = false;

This will keep the mouse cursor from changing to the pointing hand when you
move over the hidden movieclips.

Tim
Re: blocking mouse events NodeNode
4/28/2006 4:15:01 PM
thanks for your response. I attached the code to the movieClip.
hmmm, not sure why this needs to be inside another handler...


**Error** Symbol=quizAnimate, layer=Layer 5, frame=1:Line 5: Statement must
appear within on/onClipEvent handler

AddThis Social Bookmark Button