Advertisement
WindowsTV

RoomCheck

Jul 20th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var myInterval = setInterval(roomCheck, 100);
  2.  
  3. function roomCheck()
  4. {
  5.     var SHELL = _global.getCurrentShell();
  6.     var INTERFACE = _global.getCurrentInterface();
  7.     var ENGINE = _global.getCurrentEngine();
  8.     var rmc = ENGINE.getRoomMovieClip();
  9.     if (rmc.customInterace === true)
  10.     {
  11.         return;
  12.     }
  13.     else
  14.     {
  15.         clearInterval(myInterval);
  16.         this._visible = false;
  17.         // and other code to revert interface.
  18.     } // end if
  19. } // end of the function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement