home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / dexter.swf / scripts / DefineSprite_318 / frame_6 / DoAction.as
Encoding:
Text File  |  2003-10-24  |  427 b   |  22 lines

  1. set("/:mode",eval("/:have" add _name.substr("2","3")));
  2. tellTarget("/screen")
  3. {
  4.    gotoAndPlay(eval("/:mode"));
  5. }
  6. nyala = _name.substr("2","3");
  7. setProperty("../o" add nyala, _visible, "1");
  8. i = "1";
  9. while(eval("/:totalitems") >= i)
  10. {
  11.    if(i != nyala)
  12.    {
  13.       setProperty("../o" add i, _visible, "0");
  14.    }
  15.    tellTarget("../b" add i)
  16.    {
  17.       gotoAndStop("reset");
  18.       play();
  19.    }
  20.    i += "1";
  21. }
  22.