home *** CD-ROM | disk | FTP | other *** search
- Dir = "U";
- num = "1";
- while("165" >= num)
- {
- tellTarget(num)
- {
- gotoAndStop("None");
- }
- tellTarget("Box/" add num)
- {
- gotoAndStop("None");
- }
- tellTarget("BRICK/" add num)
- {
- gotoAndStop("None");
- }
- num += "1";
- }
- num = "1";
- while("165" >= num)
- {
- if(eval("a" add num) == "2")
- {
- Robo = num;
- }
- if(eval("a" add num) == "9")
- {
- tellTarget("Box/" add num)
- {
- gotoAndStop("BALL");
- }
- }
- if(eval("a" add num) == "2")
- {
- tellTarget("Box/" add num)
- {
- gotoAndStop("Start");
- }
- }
- if(eval("a" add num) == "3")
- {
- tellTarget("Box/" add num)
- {
- gotoAndStop("Stop");
- }
- }
- if(eval("a" add num) == "1")
- {
- tellTarget("BRICK/" add num)
- {
- gotoAndStop("Box");
- }
- }
- if(eval("a" add num) == "4")
- {
- tellTarget("Box/" add num)
- {
- gotoAndStop("Floor");
- }
- }
- if(eval("a" add num) == "7")
- {
- tellTarget("Box/" add num)
- {
- gotoAndStop("WBlue");
- }
- }
- if(eval("a" add num) == "6")
- {
- tellTarget("Box/" add num)
- {
- gotoAndStop("WGreen");
- }
- }
- if(eval("a" add num) == "5")
- {
- tellTarget("Box/" add num)
- {
- gotoAndStop("WRed");
- }
- }
- num += "1";
- }
-