Advertisement
WindowsTV

Untitled

Nov 1st, 2015
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var SHELL = _global.getCurrentShell();
  2. var ENGINE = _global.getCurrentEngine();
  3. function gameCoordinates()
  4. {
  5.     var room_mc = ENGINE.my_room_movieclips.room_mc;
  6.     var GAME;
  7.     var coordinates = "%";
  8.     if(room_mc.roomfunctionality._GAME != null) //GAME = room_mc.roomfunctionality._GAME;
  9.     {
  10.         var xc = ENGINE.my_room_movieclips.room_mc.roomfunctionality._GAME._x;
  11.         var yc = ENGINE.my_room_movieclips.room_mc.roomfunctionality._GAME._y;
  12.         coordinates = xc + "%" + yc;
  13.     }
  14.     else if(room_mc.GAME != null) //GAME = room_mc.GAME;
  15.     {
  16.         var xc = ENGINE.my_room_movieclips.room_mc.GAME._x;
  17.         var yc = ENGINE.my_room_movieclips.room_mc.GAME._y;
  18.         coordinates = xc + "%" + yc;
  19.     }
  20.     id__txt.text = coordinates;
  21.     return coordinates;
  22. }
  23. gameCoordinates();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement