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

  1. stop();
  2. _level100.statusNow = "sub";
  3. mn = eval("mn" + _level100.mnNumNow);
  4. mn.gotoAndPlay(2);
  5. mn.destX = posCenter._x;
  6. mn.destY = posCenter._y;
  7. mn.onEnterFrame = function()
  8. {
  9.    this.dX = this.destX - this._x;
  10.    this.dY = this.destY - this._y;
  11.    this._x += this.dX * 0.1;
  12.    this._y += this.dY * 0.2;
  13.    this.dS = this.destS - this._xscale;
  14.    this._xscale += this.dS * 0.2;
  15.    this._yscale = this._xscale;
  16.    this._alpha = this._xscale;
  17.    if(Math.floor(this.dX) <= 1 && Math.floor(this.dY) <= 1)
  18.    {
  19.       if(_level100.mnNumNow >= 8)
  20.       {
  21.          loadMovieNum(_level0.fPath + "movie" + _level100.mnNumNow + ".swf",10);
  22.          var n = 1;
  23.          while(n <= 5)
  24.          {
  25.             delete eval("mn" + n).onEnterFrame;
  26.             delete eval("mn" + n).onRollOver;
  27.             delete eval("mn" + n).onRollOut;
  28.             delete eval("mn" + n).onRelease;
  29.             n++;
  30.          }
  31.          delete this.onEnterFrame;
  32.          delete _root.onEnterFrame;
  33.          draw_mc.clear();
  34.       }
  35.    }
  36. };
  37.