home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 112
/
jogo-disk-112.iso
/
Games
/
barrels_of_monkey.swf
/
scripts
/
DefineSprite_45
/
frame_1
/
DoAction.as
Wrap
Text File
|
2010-07-14
|
2KB
|
59 lines
if(!master)
{
_global.soundBodge = this;
master = {};
_global.sndman = new SoundManager(_root.createEmptyMovieClip("snd_mc",_root.getNextHighestDepth()));
_global.master = master;
yesSound = _global.sndman.newSound("yesSound");
yesSound.onSoundComplete = function()
{
this.remove();
};
yes1Sound = _global.sndman.newSound("yes1Sound");
yes1Sound.onSoundComplete = function()
{
this.remove();
};
yes2Sound = _global.sndman.newSound("yes2Sound");
yes2Sound.onSoundComplete = function()
{
this.remove();
};
yes3Sound = _global.sndman.newSound("yes3Sound");
yes3Sound.onSoundComplete = function()
{
this.remove();
};
noSound = _global.sndman.newSound("noSound");
noSound.onSoundComplete = function()
{
this.remove();
};
timeupSound = _global.sndman.newSound("timeupSound");
timeupSound.onSoundComplete = function()
{
this.remove();
};
clickSound = _global.sndman.newSound("clickSound");
clickSound.onSoundComplete = function()
{
this.remove();
};
lostSound = _global.sndman.newSound("lostSound");
lostSound.onSoundComplete = function()
{
this.remove();
};
wonSound = _global.sndman.newSound("wonSound");
wonSound.onSoundComplete = function()
{
this.remove();
};
master.playSound = function(s)
{
trace("playing " + s + "Sound " + this[s + "Sound"]);
_global.sndman.playAndRemove(s + "Sound");
};
}
stop();