Groups | Blog | Home
all groups > flash actionscript > october 2004 >

flash actionscript : setVolume of an imported SWF?


mr.poops
10/10/2004 10:07:06 PM
Is there anyway to set the volume of an SWF file imported at runtime? I've
tried [importedSWF].setVolume() and that doesn't seem to do anything. wasn't
sure if imported swf's had their own sound object that i should be targeting
(listing obejects doesn't show one).
my only other option is using a sound toggle that calls stopAllSounds() on
it's enterframe. but that has a couple drawbacks (ie. if sounds are turned back
on, the imported swf has to be reloaded which takes it's playhead to the
beginning ? i can use a variable to remember where it's playhead was when
sounds were restarted and send it there once it reloads, but this causes a
stutter in the play). i'm using flash mx.
thanks for any help/info
mr.poops
10/11/2004 1:30:44 AM
kglad
10/11/2004 1:33:15 AM
AddThis Social Bookmark Button