home *** CD-ROM | disk | FTP | other *** search
- computer = random("3") + "1";
- zufall = random(eval("/:hardness")) + "1";
- if(zufall == "10")
- {
- tellTarget("_flash0/computer" add computer)
- {
- gotoAndPlay(_currentframe + "2");
- }
- }
- set("/:C1_frames",getProperty("_flash0/computer1", _currentframe));
- set("/:C1_frame",getProperty("_flash0/computer1", _currentframe) / "199" * "100");
- set("/:C1_pos",getProperty("_flash0/computer1/auto/move", _currentframe));
- set("/:C2_frames",getProperty("_flash0/computer2", _currentframe));
- set("/:C2_frame",getProperty("_flash0/computer2", _currentframe) / "199" * "100");
- set("/:C2_pos",getProperty("_flash0/computer2/auto/move", _currentframe));
- set("/:C3_frames",getProperty("_flash0/computer3", _currentframe));
- set("/:C3_frame",getProperty("_flash0/computer3", _currentframe) / "199" * "100");
- set("/:C3_pos",getProperty("_flash0/computer3/auto/move", _currentframe));
- set("/:P_frames",getProperty("_flash0/player", _currentframe));
- set("/:P_frame",getProperty("_flash0/player", _currentframe) / "187" * "100");
- set("/:P_pos",getProperty("_flash0/player/auto/move", _currentframe));
- if(eval("/:C1_frame") - "1" < eval("/:P_frame") and eval("/:C1_frame") >= eval("/:P_frame") and eval("/:P_pos") >= eval("/:C1_pos") - "1" and eval("/:C1_pos") + "1" >= eval("/:P_pos"))
- {
- tellTarget("_flash0/computer1")
- {
- gotoAndPlay(eval("/:C1_frames") + "2");
- }
- tellTarget("_flash0/hupen")
- {
- play();
- }
- }
- if(eval("/:C2_frame") - "1" < eval("/:P_frame") and eval("/:C2_frame") >= eval("/:P_frame") and eval("/:P_pos") >= eval("/:C2_pos") - "1" and eval("/:C2_pos") + "1" >= eval("/:P_pos"))
- {
- tellTarget("_flash0/computer2")
- {
- gotoAndPlay(eval("/:C2_frames") + "2");
- }
- tellTarget("_flash0/hupen")
- {
- play();
- }
- }
- if(eval("/:C3_frame") - "1" < eval("/:P_frame") and eval("/:C3_frame") >= eval("/:P_frame") and eval("/:P_pos") >= eval("/:C3_pos") - "1" and eval("/:C3_pos") + "1" >= eval("/:P_pos"))
- {
- tellTarget("_flash0/computer3")
- {
- gotoAndPlay(eval("/:C3_frames") + "2");
- }
- tellTarget("_flash0/hupen")
- {
- play();
- }
- }
- set("/:roundstogo","3" - eval("/:rounds"));
- if(eval("/:rounds") == "0")
- {
- tellTarget("_flash0/round1")
- {
- gotoAndStop(2);
- }
- }
- if(eval("/:rounds") == "1")
- {
- tellTarget("_flash0/round2")
- {
- gotoAndStop(2);
- }
- tellTarget("_flash0/round1")
- {
- gotoAndStop(1);
- }
- }
- if(eval("/:rounds") == "2")
- {
- tellTarget("_flash0/round3")
- {
- gotoAndStop(2);
- }
- tellTarget("_flash0/round2")
- {
- gotoAndStop(1);
- }
- }
-