Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.62 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public function startSwoshAnimation():Void
  2. {
  3.         _mainMovie.mcBgSwosh._rotation = -80;
  4.         _mainMovie.mcBgSwosh.mcGrad._x = -75;
  5.         _mainMovie.mcBgSwosh._x = -65;
  6.         _mainMovie.mcBgSwosh._y = 300;
  7.         _mainMovie.mcBgSwosh._alpha = 100;             
  8.         _mainMovie.mcBgSwosh.mcSwosh._alpha = 80;
  9.         if (_swoshGradHackCounter < 1)
  10.         {
  11.                 TweenLite.to(_mainMovie.mcBgSwosh.mcGrad, 5, { _x:370 } );
  12.                 swoshGradHackCounter++;
  13.         }
  14.         else
  15.         {
  16.                 _mainMovie.mcBgSwosh.mcGrad._alpha = 0;
  17.         }
  18.         var targetX:Number = (_mainMovie.mcBgSwosh.mcSwosh._x > -600) ? -1000 : -200;
  19.         TweenLite.to(_mainMovie.mcBgSwosh.mcSwosh, 14.5, {_x:targetX, ease:Linear.easeOut});
  20. }