This content has been marked as final. Show 6 replies
for sounds attached to frames there's nothing you can do with actionscript to control the sound beyond stopAllSounds() and controlling the timeline where the sounds are attached. if you need more control than you can achieve using those you need to use the Sound() class.
Hey there Kglad.
Well just controlling another SWF's timeline would be enough. If i could make other SWF's timelines stop and revert to frame one, then as a result the sound it's playing would stop anyway.
Can you help me with the actionscript i could use?
to direct a timeline to a different frame use the timeline's path/name and one of the goto methods. but directing a timeline away from a frame where a sound is instantiated won't stop the sound from continuing to play.
But surely if the way i'm currently playing audio is from being attached into the frames in the timeline (at the moment if i press a button to switch the movie back to Frame 1, where there's no audio attached, the sound stops) - then this would work for other frames too.
Does that make sense?
"MrIzzard" <email@example.com> wrote in message news:firstname.lastname@example.org...
> But surely if the way i'm currently playing audio is from being attached into
> the frames in the timeline (at the moment if i press a button to switch the
> movie back to Frame 1, where there's no audio attached, the sound stops) - then
> this would work for other frames too.
> Does that make sense?
If your swfs are on separate places on an html page (not one swf loaded by another swf) then you can use localConnection to
communicate between swfs.
There are some MX version 6 examples on my website where one swf controls one or more others..
You can have the receiving end stop sounds or move to a different frame etc.
i missed the part about your sounds streaming. so yes, directing the timeline away from a frame where the sound exists will stop that sound.
and if all these swfs with streaming sounds are open at the same time you can use LocalConnection() class as suggested by tralfaz to control all of them from any one of them.