Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sound problems

Status
Not open for further replies.

disfasia

Programmer
Apr 20, 2001
378
CA
I have a sound question as well. I put this in the first frame fo my fla.

_root.createEmptyMovieClip("container_mc",0);
container_mc.loadMovie("musicnejarine.swf");

I have a sound off button--easy enough with stopallsounds.

Now I realise I want a button that stops and starts this external swf that I have loaded in a root container_mc. What do I need to do?

thanks

disfasai
 
I have fixed the problem:

on my firsts frame:

_root.createEmptyMovieClip("container_mc",0);
container_mc.loadMovie("musicnejarine.swf");
globalvolume = new Sound();

on the mute toggle button:
on(release){
if(_root.globalvolume.getVolume() > 0){
_root.globalvolume.setVolume(0);
} else {
_root.globalvolume.setVolume(100);
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top