home *** CD-ROM | disk | FTP | other *** search
/ Leer Poker Spelen / Unibet.iso / content / bonus2.swf / scripts / DefineSprite_24 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-12-19  |  625 b   |  31 lines

  1. cn = 2;
  2. i = 0;
  3. while(i < Stage.height + 20)
  4. {
  5.    j = 0;
  6.    while(j < Stage.width + 20)
  7.    {
  8.       m = masker0.duplicateMovieClip("masker0" + i + "" + j,this.getNextHighestDepth());
  9.       m._x = j;
  10.       m._y = i;
  11.       radian = (i + j) * 3.141592653589793 / 180;
  12.       m.s = radian * 20 >= 40 ? radian * 20 : 40;
  13.       m.big();
  14.       j += 20;
  15.    }
  16.    i += 20;
  17. }
  18. MovieClip.prototype.big = function()
  19. {
  20.    this.onEnterFrame = function()
  21.    {
  22.       this._xscale += this.s;
  23.       this._yscale += this.s;
  24.       if(this._width > 40)
  25.       {
  26.          delete this.onEnterFrame;
  27.       }
  28.    };
  29. };
  30. stop();
  31.