Advertisement
WindowsTV

Untitled

Nov 21st, 2015
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var SHELL = _global.getCurrentShell();
  2. function handleLoading ()
  3. {
  4.     var _loc1 = SHELL.getCurrentRoomId();
  5.     var _loc2 = SHELL.getRoomNameById(_loc1);
  6.     if (_loc2 == undefined)
  7.     {
  8.         loop_mc.phraseslang_mc.phrases_mc.loader_text._visible = false;
  9.     }
  10.     else
  11.     {
  12.         var str = _loc2;
  13.         function handleUpperCase(str)
  14.         {
  15.             var firstChar = str.substr(0, 1);
  16.             var fullString = str.substr(1, str.length);
  17.             return firstChar.toUpperCase()+fullString.toLowerCase();
  18.         }// end of the function
  19.         loop_mc.phraseslang_mc.phrases_mc.loader_text._visible = true;
  20.         loop_mc.phraseslang_mc.phrases_mc.loader_text.text = SHELL.getLocalizedString("Loading") + " " + handleUpperCase(str);
  21.     }//end of the if
  22. }// end of the function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement