home *** CD-ROM | disk | FTP | other *** search
/ Samsung New PC Studio / Samsung_new_Pc_studio.iso / Experience / Pt_br / timeline.swf / scripts / frame_47 / DoAction.as
Text File  |  2007-09-20  |  3KB  |  106 lines

  1. stop();
  2. _quality = "low";
  3. var n = 1;
  4. while(n <= 5)
  5. {
  6.    if(n != _level100.mnNumNow)
  7.    {
  8.       delete eval("mn" + n).onEnterFrame;
  9.       delete eval("mn" + n).onRollOver;
  10.       delete eval("mn" + n).onRollOut;
  11.       delete eval("mn" + n).onRelease;
  12.    }
  13.    n++;
  14. }
  15. delete this.onEnterFrame;
  16. t = 0;
  17. picNum = 1;
  18. speedY = 0.3;
  19. speedS = 0.1;
  20. firstStep = false;
  21. var i = 1;
  22. while(i <= 10)
  23. {
  24.    pic = pic.duplicateMovieClip("pic" + i,10 + i);
  25.    pic._x = posCenter._x;
  26.    pic._y = posCenter._y;
  27.    pic.destX = 92 * (i - 1) + 62;
  28.    pic.destY = pic.oY = random(450) + 50;
  29.    pic.destS = 450 - Math.abs(posCenter._x - pic.destX) / 10;
  30.    pic.num = i;
  31.    _level200.snd.gotoAndPlay("snd1");
  32.    this["bgPic" + i]._x = 0;
  33.    this["bgPic" + i]._y = 0;
  34.    this["bgPic" + i]._xscale = this["bgPic" + i]._yscale = random(12) + 100;
  35.    this["bgPic" + i].setMask(pic);
  36.    eval("mn" + _level100.mnNumNow)._visible = false;
  37.    pic.onEnterFrame = function()
  38.    {
  39.       this.dX = this.destX - this._x;
  40.       this._x += this.dX * 0.6;
  41.       this.dY = this.destY - this._y;
  42.       this._y += this.dY * speedY;
  43.       this.dS = this.destS - this._xscale;
  44.       this._xscale += this.dS * speedS;
  45.       this._yscale = this._xscale;
  46.       if(subTitle._currentframe == 1)
  47.       {
  48.          subTitle.swapDepths(999);
  49.          subTitle.gotoAndPlay("start");
  50.       }
  51.       t++;
  52.       if(t > 300)
  53.       {
  54.          draw_mc.clear();
  55.          speedY = 0.2;
  56.          eval("pic" + picNum).destY = posCenter._y;
  57.          eval("pic" + picNum).destS = 50 - Math.abs(posCenter._x - eval("pic" + picNum).destX) / 5;
  58.          if(Math.round(eval("pic" + picNum).dS) <= 1)
  59.          {
  60.             eval("bgPic" + picNum).play();
  61.             if(!firstStep)
  62.             {
  63.                picNum++;
  64.                if(picNum > 11)
  65.                {
  66.                   firstStep = true;
  67.                   picNum = 1;
  68.                }
  69.             }
  70.          }
  71.       }
  72.       if(t > 400)
  73.       {
  74.          speedY = 0.6;
  75.          speedS = 0.2;
  76.          eval("pic" + picNum).destX = 92 * (picNum - 1) + 64;
  77.          eval("pic" + picNum).destY = 515;
  78.          eval("pic" + picNum).destS = 100;
  79.          if(Math.round(eval("pic" + picNum)._y) > 450)
  80.          {
  81.             eval("bgPic" + picNum)._visible = false;
  82.             eval("bgPic" + picNum).setMask(null);
  83.             eval("pic" + picNum).picClip.loadMovie(_level0.fPath + "thumb/" + _level100.mnNumNow + "_" + picNum + ".jpg");
  84.             eval("pic" + picNum).play();
  85.             eval("pic" + picNum)._alpha = 30;
  86.             if(picNum == 10)
  87.             {
  88.                nextFrame();
  89.             }
  90.             picNum++;
  91.             _level200.snd.gotoAndPlay("snd2");
  92.          }
  93.          if(Math.round(this.dX) == 0 && Math.round(this.dY) == 0 && Math.round(this.dS) == 0)
  94.          {
  95.             if(this.num == 10)
  96.             {
  97.                _quality = "high";
  98.                loadMovieNum(_level0.fPath + "movie" + _level100.mnNumNow + ".swf",10);
  99.             }
  100.             delete this.onEnterFrame;
  101.          }
  102.       }
  103.    };
  104.    i++;
  105. }
  106.