home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / amazingrace.swf / scripts / DefineSprite_85 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  397 b   |  27 lines

  1. function move(to)
  2. {
  3.    if(position == to)
  4.    {
  5.       return undefined;
  6.    }
  7.    if(!is_moving)
  8.    {
  9.       movement = to;
  10.       if(position == "normal")
  11.       {
  12.          gotoAndPlay("move_" + to);
  13.       }
  14.       else
  15.       {
  16.          gotoAndPlay(position + "_to_normal");
  17.       }
  18.    }
  19.    else
  20.    {
  21.       movement = to;
  22.    }
  23. }
  24. position = "normal";
  25. is_moving = false;
  26. stop();
  27.