Groups | Blog | Home
all groups > flash (macromedia) > december 2003 >

flash (macromedia) : Disable Underlying MovieClip


David_newbie
12/23/2003 10:02:28 PM
May seem like a dumb question, but I can't seem to get this.

I have a frame with form elements (input text, etc...), when a user clicks a button, a movie clip is "moved over" the main screen, this movie clip contains more input elements. If the user clicks "outside" one of these elements, the "underlying" form elements (which can't be seen because the moved movie clip is on top) are "active". I can't allow the user to accidentally select something underneath that they cannot see?

Is there a way to "disable" this stuff? I tried some cheezy work arounds, like a "background" image, etc. on the newly moved clip to try and "mask" the underlying form elements, it didnt' work.

Any help would be great.

David

juice002
12/23/2003 11:34:31 PM

What you're really looking for is a way to disable all input to the 'underneath' movie clip, and so far there's no way to do that easily (as far as I know), with one simple statemet. However, flash MX has made it possible to disable individual components, as well as buttons:

myButton.enabled = false; // disable a button
myComboBox.setEnabled(false); // disable a combo box component (works for other components too)

So, you basically have to loop through all obscured input elements and disable them one by one. I could imagine writing a generic function that could do this for any movie clip, by using the for..in structure, but by no means is that necessary.

Rich



AddThis Social Bookmark Button