home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Acao / bubble_tanks_2.swf / scripts / DefineSprite_323 / frame_1 / DoAction.as
Encoding:
Text File  |  2008-09-02  |  477 b   |  21 lines

  1. function GenerateBubbles()
  2. {
  3.    if(counter == 0)
  4.    {
  5.       var _loc3_ = Math.random() * 500;
  6.       var _loc2_ = "risingBubble_" + bubbleDepth;
  7.       _root.risingbubbles_mc.attachMovie("menuBubbles",_loc2_,bubbleDepth);
  8.       counter = Math.round(Math.random() * (maxCounter - minCounter)) + minCounter;
  9.       bubbleDepth++;
  10.    }
  11.    else
  12.    {
  13.       counter--;
  14.    }
  15. }
  16. var minCounter = 5;
  17. var maxCounter = 20;
  18. var counter = 0;
  19. var bubbleDepth = 1000;
  20. stop();
  21.