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

  1. function goSmn(num)
  2. {
  3.    ease(thumbHighlight,(pic2._x - pic1._x) * (num - 1) + pic1._x,thumbHighlight._y);
  4.    thumbHighlight.onEnterFrame = function()
  5.    {
  6.       this.t = this.t + 1;
  7.       if(this.t > this.d)
  8.       {
  9.          delete this.onEnterFrame;
  10.       }
  11.       this._x = easeInOut3(this.t,this.bX,this.dX,this.d);
  12.    };
  13. }
  14. if(timelineCover._currentframe == 1)
  15. {
  16.    timelineCover.gotoAndPlay(2);
  17. }
  18. thumbHighlight.swapDepths(this.getNextHighestDepth());
  19. goSmn(1);
  20. var i = 1;
  21. while(i <= 10)
  22. {
  23.    pic = this["pic" + i];
  24.    pic.num = i;
  25.    thumbHighlightOver.duplicateMovieClip("thumbHighlightOver" + i,200 + i);
  26.    eval("thumbHighlightOver" + i)._x = pic._x;
  27.    eval("thumbHighlightOver" + i)._y = thumbHighlight._y;
  28.    pic.onRollOver = function()
  29.    {
  30.       eval("thumbHighlightOver" + this.num).gotoAndPlay("over");
  31.       _level200.snd.gotoAndPlay("snd2");
  32.    };
  33.    pic.onRollOut = function()
  34.    {
  35.       eval("thumbHighlightOver" + this.num).gotoAndPlay("out");
  36.    };
  37.    pic.onRelease = function()
  38.    {
  39.       _level200.snd.gotoAndPlay("snd3");
  40.       thumbHighlight.bX = thumbHighlight._x;
  41.       thumbHighlight.dX = thumbHighlight.destX - thumbHighlight._x;
  42.       _level10.subcon.gotoAndPlay("Smn" + this.num);
  43.    };
  44.    i++;
  45. }
  46.