soundControl = _root.createEmptyMovieClip('soundControl',_root.getNextHighestDepth()); soundLoader = new MovieClipLoader(); soundLoader.loadClip('soundControl.swf',soundControl); soundLoader.onLoadInit = function(mc) { mc._width=mc._width*1.5; mc._height=mc._height*1.5; mc._x=780; mc._y=600; mc._visible = false; mc.onRelease = function() { if(_root.soundStep) _root.soundStep=-_root.soundStep; else _root.soundStep=1-(_root.soundVolume)/50; this.play(); _root.onEnterFrame = _root.site.soundChangeVolume; } } _root.soundVolume=1; _root.soundStep=1; _root.mySound.setVolume(_root.soundVolume); _root.mySound.play(0); function soundChangeVolume() { if (_root.soundStep) { _root.soundVolume+=_root.soundStep; _root.mySound.setVolume(_root.soundVolume); if ((_root.soundVolume/50 - _root.soundStep) == 1) _root.onEnterFrame = null; } } _root.onEnterFrame = _root.site.soundChangeVolume;