Reputation: 239
Is it possible somehow to make a function which will disable all buttons? And like make grey alpha overlay over the whole flash file?
But only one movie clip should not be overlayed, and one button should not be disabled.
Can this be done some easy way, or do I have to make a code to disable all single button?
Upvotes: 2
Views: 341
Reputation: 886
addChild moves whatever object to the topmost tier of the movie clip you are adding it to. So passing the gray overlay to addChild last draws it over all your objects on the screen. Then calling it with the button you want as a parameter makes it show up over the gray overlay since it is the last object you passed addChild().
Upvotes: 1