home *** CD-ROM | disk | FTP | other *** search
- function move(to)
- {
- if(position == to)
- {
- return undefined;
- }
- if(!is_moving)
- {
- movement = to;
- if(position == "normal")
- {
- gotoAndPlay("move_" + to);
- }
- else
- {
- gotoAndPlay(position + "_to_normal");
- }
- }
- else
- {
- movement = to;
- }
- }
- position = "normal";
- is_moving = false;
- stop();
-