home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / memory_madness.swf / scripts / frame_88 / DoAction.as
Encoding:
Text File  |  2006-09-05  |  525 b   |  29 lines

  1. if(count == seqCount * Level)
  2. {
  3.    gotoAndPlay(148);
  4.    stop();
  5. }
  6. else
  7. {
  8.    LCount = "0";
  9.    while(LCount < Level)
  10.    {
  11.       count += "1";
  12.       LCount += "1";
  13.       set("Data" add count,random("8") + "1");
  14.    }
  15.    pCount = "0";
  16.    userResponse = "0";
  17.    Phase = count / level;
  18.    tellTarget("/movDisplay")
  19.    {
  20.       valPhase = eval("../:Phase");
  21.    }
  22.    LedBar = Phase / seqcount * "10" + "10";
  23.    tellTarget("/movLedBar")
  24.    {
  25.       gotoAndPlay(eval("../:ledbar"));
  26.    }
  27.    gotoAndPlay(95);
  28. }
  29.