home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / MindScape.swf / scripts / frame_32 / DoAction.as < prev   
Encoding:
Text File  |  2007-12-04  |  1.8 KB  |  87 lines

  1. _global.ctrlUp = 87;
  2. _global.ctrlDown = 83;
  3. _global.ctrlLeft = 65;
  4. _global.ctrlRight = 68;
  5. _global.ctrlAction = 32;
  6. _global.ctrlUp2 = 38;
  7. _global.ctrlDown2 = 40;
  8. _global.ctrlLeft2 = 37;
  9. _global.ctrlRight2 = 39;
  10. _global.ctrlStatus = new Array();
  11. onEnterFrame = function()
  12. {
  13.    var _loc1_ = _global;
  14.    if(Key.isDown(_loc1_.ctrlUp))
  15.    {
  16.       _loc1_.ctrlStatus[_loc1_.ctrlUp] = true;
  17.    }
  18.    else
  19.    {
  20.       _loc1_.ctrlStatus[_loc1_.ctrlUp] = false;
  21.    }
  22.    if(Key.isDown(_loc1_.ctrlDown))
  23.    {
  24.       _loc1_.ctrlStatus[_loc1_.ctrlDown] = true;
  25.    }
  26.    else
  27.    {
  28.       _loc1_.ctrlStatus[_loc1_.ctrlDown] = false;
  29.    }
  30.    if(Key.isDown(_loc1_.ctrlLeft))
  31.    {
  32.       _loc1_.ctrlStatus[_loc1_.ctrlLeft] = true;
  33.    }
  34.    else
  35.    {
  36.       _loc1_.ctrlStatus[_loc1_.ctrlLeft] = false;
  37.    }
  38.    if(Key.isDown(_loc1_.ctrlRight))
  39.    {
  40.       _loc1_.ctrlStatus[_loc1_.ctrlRight] = true;
  41.    }
  42.    else
  43.    {
  44.       _loc1_.ctrlStatus[_loc1_.ctrlRight] = false;
  45.    }
  46.    if(Key.isDown(_loc1_.ctrlAction))
  47.    {
  48.       _loc1_.ctrlStatus[_loc1_.ctrlAction] = true;
  49.    }
  50.    else
  51.    {
  52.       _loc1_.ctrlStatus[_loc1_.ctrlAction] = false;
  53.    }
  54.    if(Key.isDown(_loc1_.ctrlUp2))
  55.    {
  56.       _loc1_.ctrlStatus[_loc1_.ctrlUp2] = true;
  57.    }
  58.    else
  59.    {
  60.       _loc1_.ctrlStatus[_loc1_.ctrlUp2] = false;
  61.    }
  62.    if(Key.isDown(_loc1_.ctrlDown2))
  63.    {
  64.       _loc1_.ctrlStatus[_loc1_.ctrlDown2] = true;
  65.    }
  66.    else
  67.    {
  68.       _loc1_.ctrlStatus[_loc1_.ctrlDown2] = false;
  69.    }
  70.    if(Key.isDown(_loc1_.ctrlLeft2))
  71.    {
  72.       _loc1_.ctrlStatus[_loc1_.ctrlLeft2] = true;
  73.    }
  74.    else
  75.    {
  76.       _loc1_.ctrlStatus[_loc1_.ctrlLeft2] = false;
  77.    }
  78.    if(Key.isDown(_loc1_.ctrlRight2))
  79.    {
  80.       _loc1_.ctrlStatus[_loc1_.ctrlRight2] = true;
  81.    }
  82.    else
  83.    {
  84.       _loc1_.ctrlStatus[_loc1_.ctrlRight2] = false;
  85.    }
  86. };
  87.