You can also just skip the _root param and leave the constructor empty like this: var s:Sound = new Sound();
On 10/15/06, Paul Neave <[EMAIL PROTECTED]> wrote:
The best way to turn sounds off isn't to use stopAllSounds() as that will only stop the sounds at that moment, not mute them permanently. If you're using timeline-based code, you can do this: s = new Sound(_root); s.setVolume(0); and to un-mute the sound: s.setVolume(100); Simple. Of course, it uses _root (which is evil) but I think this is forgivable in this instance. Best, Paul. On 11/10/06, Stephen Ford <[EMAIL PROTECTED]> wrote: > I have an interactive demo that consists of one main SWF file that loads in other SWF files depending on what the user clicks on in the main SWFs navigation. > > Within this main SWF and within all the seperate SWFs are numerous movies each with their own timeline doing it's own thing. > > In numerous place on timelines throughout this set of SWFs, sound effects have been hardcoded onto their respective timeline (i.e: not loaded dynamically using the sound object). > > So is there any way to turn off sound globally regardless of where it's located on whatever timeline within whatever SWF. So I can just create an on/off button for the main SWF that will control sound globally ??? > > Thanks._______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
-- Francis Turmel Personal: [EMAIL PROTECTED] Business: [EMAIL PROTECTED] _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com