PDA

View Full Version : Overlapped movie clips and 'click-thru'


jvoss
08-07-2005, 06:58 PM
I've been experimenting with using dynamically created movieclips to create 'windows' to hold things such as tooltips or dragable text fields for advanced help. The problem is that if you click in one of my 'windows', and you happen to be on top of a component, say a button, that is hidden beneath my 'window' then the (hidden) component receives the 'click' and is activated.

What is the best way to stop this problem. Will a mask placed beneath the content of my 'window' work?

THX

MichaelxxOA
08-07-2005, 07:15 PM
I've never heard of anything like this happening, but one thing that you could do is in your function definition for 'click' you could run a conditional against a variable 'enabled' something like this

myListener.click = function() {
if (_root.enabled) {
// Code here
}
}
// and then for your buttons that you don't want any of the components
// to recieve events for put
myMC.onPress = function() {
_root.enabled = false;
}

something like that should work... I think, I don't know I'm tired.

-Michael