home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / eolica.swf / scripts / DefineSprite_181 / frame_10 / DoAction.as
Encoding:
Text File  |  2005-07-26  |  203 b   |  7 lines

  1. var tB = _parent.light_sound_marker.getBounds(WM_GAME.mc);
  2. minY = tB.yMin;
  3. maxY = tB.yMax;
  4. vol = (_Y - minY) / (maxY - minY);
  5. vol = Math.round(vol * 100);
  6. Audio.play("geo_windhouse_on_1_snd",vol);
  7.