home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / astroys.swf / scripts / DefineSprite_27 / frame_2 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  156 b   |  7 lines

  1. vol = (1 - (_parent._currentFrame - startFrame) / (_parent._totalFrames - startFrame)) * 100;
  2. if(vol < 0)
  3. {
  4.    vol = 0;
  5. }
  6. _parent.snd.setVolume(vol);
  7.