View Full Version : Stoping movie/sounds
Tim, Vic
12-09-2010, 03:05 AM
Trying to figure out how to stop a movie or other sounds when it shouldn't be playing anymore.
Don't quite understand why it continues to keep playing when its not even there anymore. :(
adninjastrator
12-09-2010, 01:14 PM
Rather hard to give any suggestions without more specific information.
Is the movie a video? or movie clip? What other sounds? What do you mean "when it's not even there anymore"?
But most likely you are not including any action to stop the sound as a first step in any action to make it so "it's not there any more".
It's sort of like walking out of a room without first turning off the radio... of course it's still playing. So first turn off the radio, then walk out of the room.
Best wishes,
Adninjastrator
Tim, Vic
12-09-2010, 02:49 PM
the movie is a video that I've imported.
I've been over at the adobe forums, and they told me to use sound channels then directed me to a site that was in turkish about them. (Needless to say I don't speak turkish)
when I say its not there anymore, its I have a frame that the file doesn't exist in, and I go there. But the sound doesn't stop.
I've tried using sound channels, but its like I have two different languages that each do half of the work.
If I do mysound.stop(); I get a 1061: Call to a possibly undefined method stop through a reference with static type flash.media:Sound.
However I don't get the error with mychannel.stop();
But then the reverse happens. I get the error with mychannel.play(); but not with mysound.play();
Of course if I use mysound.play(); and mychannel.stop(); it doesn't work for very obvious reasons.
Before I had a pretty nice effect where if you clicked on a button that made a symbol go to to a frame where the sound existed, and then clicked on a similar button, the sound wouldn't restart up again. (The sound has a startup noise, then a continuous noise)
Now with the sound channels every time you click a button, you hear the start up noise.
I'm going quite crazy over here.. as I've been wanting to get this finished. (and my flash teacher won't teach me how to actually stop it since I'm not doing the super basic stuff we did learn in class)
adninjastrator
12-09-2010, 04:49 PM
Are you using the FLVPlayback component, NetStream, or is the video embedded into the time line?
How are you controling the video? did you write the actionscript for the buttons or did you just "skin" a video player?
Adninjastrator
Tim, Vic
12-09-2010, 04:57 PM
Just did the simple skin.
Its the FLVplayback too.
Here is the file to make things easier.
http
://www
.megaupload.com/?d=QIMNGG5U
Tim, Vic
12-09-2010, 07:16 PM
I've got the sounds to work now with some "clever" programming.
But the video still astounds me.
http:
//www
.megaupload.com/?d=SYFZ7O3I
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.