home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / back_to_work.swf / scripts / frame_4 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  359 b   |  23 lines

  1. clothexe();
  2. clothinit();
  3. woman.onEnterFrame = function()
  4. {
  5.    if(Key.isDown(37))
  6.    {
  7.       eval(clothname)._x -= 1;
  8.    }
  9.    else if(Key.isDown(39))
  10.    {
  11.       eval(clothname)._x += 1;
  12.    }
  13.    else if(Key.isDown(38))
  14.    {
  15.       eval(clothname)._y -= 1;
  16.    }
  17.    else if(Key.isDown(40))
  18.    {
  19.       eval(clothname)._y += 1;
  20.    }
  21. };
  22. stop();
  23.