home *** CD-ROM | disk | FTP | other *** search
/ Leer Poker Spelen / Unibet.iso / content / TheCD3.swf / scripts / DefineSprite_7 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-12-19  |  2.0 KB  |  66 lines

  1. let2.ds = new flash.filters.DropShadowFilter(5,45,16777215,30,0,0,1,3,false,false,true);
  2. let2.bl = new flash.filters.BlurFilter(5,5,2);
  3. let2.destSize = Math.random() * 300;
  4. let2.destPan = Math.round(Math.random() * 50);
  5. var dp = 0;
  6. if(Math.random() < 0.5)
  7. {
  8.    let2.destPan = - let.destPan;
  9. }
  10. let2.onEnterFrame = function()
  11. {
  12.    this.letter.text = let.letter.text;
  13.    this.bl.blurX = (300 - this._xscale) / 20 + 5;
  14.    this.ds.distance = (this._xscale - 300) / 5;
  15.    dp += (this.destPan - s2.getPan()) / 15;
  16.    s2.setPan(dp);
  17.    if(dp == this.destPan)
  18.    {
  19.       this.destPan = Math.round(Math.random() * 100);
  20.       if(Math.random() < 0.5)
  21.       {
  22.          this.destPan = - this.destPan;
  23.       }
  24.    }
  25.    this.ds.angle = - this._xscale;
  26.    this.bl.blurY = this.bl.blurX;
  27.    this.filters = [this.bl,this.ds];
  28.    this._xscale += (this.destSize - this._xscale) / 5;
  29.    this._yscale = this._xscale;
  30.    if(Math.abs(this.destX - this._x) < 1)
  31.    {
  32.       this.destY = Math.random() * Stage.height;
  33.       this.destX = Math.random() * Stage.width;
  34.    }
  35.    if(Math.abs(this.destSize - this._xscale) < 1)
  36.    {
  37.       this.destSize = Math.random() * 300;
  38.    }
  39. };
  40. let.ds = new flash.filters.DropShadowFilter(5,45,16777215,30,0,0,1,3,false,false,false);
  41. let.bl = new flash.filters.BlurFilter(5,5,3);
  42. let.destSize = Math.random() * 200;
  43. let.onEnterFrame = function()
  44. {
  45.    if(Math.random() < 0.3)
  46.    {
  47.       this.letter.text = "MEET TANJA";
  48.    }
  49.    this.bl.blurX = (300 - this._xscale) / 30 + 2;
  50.    this.ds.distance = (this._xscale - 300) / 5;
  51.    this.ds.angle = this._xscale;
  52.    this.bl.blurY = this.bl.blurX;
  53.    this.filters = [this.bl,this.ds];
  54.    this._xscale += (this.destSize - this._xscale) / 5;
  55.    this._yscale = this._xscale;
  56.    if(Math.abs(this.destX - this._x) < 1)
  57.    {
  58.       this.destY = Math.random() * Stage.height;
  59.       this.destX = Math.random() * Stage.width;
  60.    }
  61.    if(Math.abs(this.destSize - this._xscale) < 1)
  62.    {
  63.       this.destSize = Math.random() * 300;
  64.    }
  65. };
  66.