Flash : Button Q
Flash : Button Q
Out of context: Reply #3
- Started
- Last post
- 5 Responses
- jkosoy0
If you want it for a MOVIE add the following to frame 1 of your maintimeline:
_global.enableMovie = function($mc,$state)
{
$state = Boolean($state);
var $i;
for($i in _root)
{
if(typeof $mc[$i] == "movieclip" || typeof $mc[$i] == "button")
{
$mc[$i].enabled = $state;
enableMovie($mc,$state);
}
};// to turn off
enableMovie(_root,0);// to turn on
enableMovie(_root,1);