home *** CD-ROM | disk | FTP | other *** search
- i = "1";
- found = "0";
- while(i < "3")
- {
- if(getProperty("l" add i, _currentframe) == "1")
- {
- found += "1";
- set("item" add found,"l" add i);
- }
- i += "1";
- }
- if(found == "0")
- {
- i = "1";
- while(i < "5")
- {
- if(getProperty("r" add i, _currentframe) == "1")
- {
- found += "1";
- set("item" add found,"r" add i);
- }
- i += "1";
- }
- }
- toDrop = eval("item" add (random(found) + "1"));
- items -= "1";
- tellTarget(toDrop)
- {
- gotoAndStop("left");
- play();
- }
-