I have two videos and I want to make the sound play when the mouse is over one then stop when mouse leaves that video, and same for the other video. So the effect you get is that on mouseover of one of the videos the sound plays for that video only.
I can play both videos fine loading up two seperate .flv’s as two different instances of NetStream.
To load the audio for one of them so that I can control it I usually do
NetStream for these two are ns1 and ns2
this.createEmptyMovieClip("snd1", 0);
snd1.attachAudio(ns1);
audio1 = new Sound(snd1);
audio1.setVolume(0);
So that I can control the volume as well using audio1. But as soon as I repeat this code but using ns2, snd2, and audio2, both audios play and I can’t seem to control even one of them. Is one of these variables some time of global?
How can I control the audio of two seperate videos?
Thanks very much for any and all help.