ActionScript 3.0 :: FLV Sound Doesn't Stop?
Dec 22, 2008
I have a swf with 4 scenes, in each scene there's a FLVvideo. I have buttons going to prevScene and nextScene and when goback and forward I hear the sound of another FLV,?the code for the buttons (for example) is
button1.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
[code].....
View 3 Replies
Similar Posts:
Oct 14, 2009
I'm experiencing difficulty when playing sound files. When I start the playback of the timelime using the enter/return button everything plays as it should. When I press it again to stop, the visuals stop but the sound file in the timeline just keeps playing until it reaches the end of the track- even if I have cut some out of the timeline. I used to use mx 2004 and never had the problem. Note: I am using this in college not on a personal computer.
View 1 Replies
Jul 14, 2010
I have movie clip buttons with a dynamic sound withing a slide show. Slide show consists of 3 movie clips connecting on frames 1, 300 and 900. The movie clip buttons with sound over are within the connecting movie clips. My problem is that although the sound and buttons work fine most of the time, sometimes, particularly if I mouse over the button wile it's transitioning on one of the connecting frames (300, 900), the sound doesn't stop... I'm sure I'm missing something in the Action Script?? Here's the script I'm using for the buttons:
stop();
import flash.display.MovieClip;
import flash.events.MouseEvent;
[code].....
View 3 Replies
Feb 16, 2011
It stop sound sometimes and sometimes it doesnt
var soundReqTele:URLRequest = new URLRequest("sounds/telephone_ring.mp3");
var soundTele:Sound = new Sound();
var controller:SoundChannel = new SoundChannel();
soundTele.addEventListener(Event.COMPLETE, soundLoaded);
[Code]....
View 1 Replies
May 8, 2009
I have three btns on stage, clicking on each one i want them to load an external mp3.The problem is the previous loaded sound doesn't stop when a new one is loaded so I have all sounds playing at the same time
View 3 Replies
Aug 26, 2009
I have a contact form for which I have a tween. That contact form consists of two keyframes, first the form, I tried putting the code stop(); in the first keyframe but it didn't stop. I then changed stop(); to _root.stop();, which didn't work either. I have to stop it because otherwise users would see a thank you note before they even enter their details. What can I do? Converting to movieclip didn't work either, besides it puts a funny character when I press AltGr
View 2 Replies
Jan 21, 2010
How to import sound with AS? Cuz i have tried it and my sound just wount play. Can you explain me where my sound should be and what is the as code for importing cuz i use
mysound = new Sound();
mysound.attachSound("SoundOn");
mysound.start();
and this SoundON from where i get it, i try to add linkage to the sound file but in CS4 i cant find the option;. I do it from the library, adding text into the linkage field but still my sound doesn't want to play?
View 15 Replies
Dec 5, 2010
The code seems OK but I can't hear the sound. I have it in the fla/swf and exported etc... I suppose something in this code is wrong. Haven't coded for ages - bit rusty I'm afraid.
[Code].....
View 3 Replies
Jan 5, 2010
Im attempting to make a preloader. I am very new to action script so this is what i have.
Code:
ifFrameLoaded ( "UC" ) {
gotoAndPlay ( "home" );
}
as simple as it gets, right? Wrong, the preloader works however is get this error 1087: Syntax error: extra characters found after end of program. The preloader it self works it plays and when the movie is loaded it begins the movie, however the movie doesnt stop at any of my stop commands and keeps looping through itself over and over again till i exit the window.
View 1 Replies
Aug 27, 2010
I have some bombs like this :
var sjunkBomb:Array = new Array;
for (var i:int = 0; i < sjunkBombMaxAntal; i++) {
var bomb = new sjunkbomb;[code]....
Each movieclip sjunkBomb contains an animated movieclip. When the bombs reach the bottom I want to stop the inside animation.I guess it's better to stop them so they affect the rest of the game if there are a lot of bombs. I know how to hide them with sjunkBomb[x] .visible = false; but if I want to stop them? sjunkBomb[x].stop(); doesn't work!?
View 1 Replies
Nov 1, 2010
When my animations are playing in the flashplayer and you rightclick and uncheck the play command only the animations in the main timeline stop playing. All the child animations continue to play. How do I make it so they all will stop playing when play is unchecked?
Is there a event listener that monitors if the movie has been stopped?
View 11 Replies
Aug 5, 2010
I have a bit of a problem with sound.. I have a main container animation with background sound that's loaded with soundChannel..I also have an externally loaded SWFs with Movie Clip buttons that have a sound ON ROLLOVER on the timeline..after rolling off - I place the:SoundMixer.stopAll();to stop the button from playing the sound once the mouse is rolled off.. However, the problem I'm running into is that it also stops the sound of the main container movie cli
View 1 Replies
Mar 13, 2007
i have programed a play button using:
[Code]...
now i am trying to program the stop button to allow the user to stop mid song....
View 4 Replies
Jan 5, 2010
I am using FLASH CS3.I have gone through many posts, seems to be an issue with many people.Still haven't come across a fix.Website made in FLASH. Flash movie loads and sound works great!I have a button with 'StopAllSounds' action script.[code]When I go back to main page... sound starts up again.Is there a way I can stop all sound regardless of where the visitor goes on the website?
View 2 Replies
Oct 19, 2010
I'm sure this is a common problem, I tried looking around on the forum for a problem like mine but was unable to find anything. I'm using Flash CS3, Actionscript 2.0, and am making a soundboard. I have two scenes, one that's the title screen, of which has a sound file loaded via the timeline, (I think) set to Event and Loop, and a button which takes you to the next scene and makes a short sound when it's pressed. My second scene has background music as well, also set to Event and Loop.
Problem is that when I press the button, the background music keeps playing into the next scene. I tried using putting stopAllSounds onto the button, but that makes the sound of the button stop as well, and I'd really like to keep it. I've been messing with this for days, and I can't figure it out.
View 3 Replies
Feb 13, 2007
i want to make a single button to play a sound, and if pressed again, stop the sound. and if pressed again, play the sound, and so on...
i know it has to be made with a boolean variable, true/false, but i just can't figure out how.
View 13 Replies
Aug 5, 2010
Need to make a character start to talk when the sound starts and stop talk when the sound stops so I'm using this:
[Code]...
View 2 Replies
Nov 19, 2003
I put the "stop" action at the end of my movie on the last keyframe, but the movie doesn't stop!
View 14 Replies
May 17, 2003
I want to use a sound loop in my flash movie. The movie has many scenes. And the problem is that when I go to next scene or different scene I hear the sound repeating twice. I mean sound does not stop from first scene and begins from the different scenes.Is there any way to play sound like "stop all sound" option in Flash.
View 6 Replies
Dec 16, 2009
I have sound playing in my flash file. My index file is a html file which calls the flash file, and when i run the html file, the sound doesn't play. Does anyone know how I can rectify this?
View 5 Replies
Jan 12, 2010
I am doing a game such that when the score++, there is a certain sound. And when the score--, there is another sound. Cause I'm not really sure if this is the correct way. So I have two sound files, linkage "hit" and "miss" The actionscript goes like this on my movie clip:
[Code].....
View 2 Replies
Nov 11, 2006
i am working on a slide presentation, with audio commentary. There are several swf's each with a separate mp3, which i am playing with media controller. I am loading each swf file on a base swf. Problem is the sound of a particular swf doesn't stop even when it's swf is unloaded. So when the next file is loaded, two simultaneous audio tracks can be heard.
i tried putting stopallsounds on the button which loads the next swf, but it doesn't work either.
View 1 Replies
Jan 9, 2012
I have this problem when I try to fade in sound with the function below. It just doesn't work and I can't figure out where the problem is. I would like to fade in a looping sound but nothing happens.
this is used to play a sound via events
Code:
dispatchEvent(new CustomEventSound(CustomEventSound.PLAY_SOUND, Main.SOUND_AMBIENT, false, true, false, 999999, 0, 0, setSoundVolume));
this is the function to play a sound. the stop-function is almost identical to this one.
Code:
public function playSound(soundName:String, isSoundTrack:Boolean = false, fadeIn:Boolean = false, fadeOut:Boolean = false,
loops:int = 1, offset:Number = 0, volume:Number = 1):void {
[Code].....
View 7 Replies
Dec 12, 2009
im having a problem with sound in the animation. I noticed that sound doesnt sync properly in 24 fps.The sound actually does sync properly when the sound is an event, but when the sound is set to stream, it actually doesnt play properly, and i need my animation to have streaming sound especially for the internet. So for example, if i added a sound effect to start on frame 30, when i play the animation in swf, the sound effect actually starts playing at the wrong frame, in this case, the sound plays before frame 30. So in this case, the sound plays too early, and therefore the sound effect doesnt match with the animation itself. I wanted my animation to be at 24 fps, so i assume theres something that i have to do to get sound to sync properly with the animation at 24 fps.
View 2 Replies
Aug 7, 2008
The keyword is "sometimes".
I recompiled a Flash 8 project in Flash CS3 recently and noticed that some of the sound effects sounded like a painful chippy mess. It sounded like the mp3 bitrate was at the lowest Flash outputs (16kbps). I compiled again, and all the problems went away. Then I compiled again and different sounds went chippy!
Fine, whatever. Maybe it's a glitch between project versions.
This week I built a project from the ground up in Flash CS3 with AS 3.0 . The chippy compression is still there and happens most of the time. Both my global and local compression settings for sound clips are mp3, 160kbps, Stereo.
View 8 Replies
Oct 23, 2011
I have a button that when clicked, it's supposed to play a sound. Now, the sound does play when it's clicked, but it seems to be offset (meaning, it starts a few seconds later in the sound). As a result, only half of the sound plays.I have two buttons that do this, and I'm not sure what caused them to do so.I've never had this problem before, so I'm clueless where to go to fix it. I tried verifying the integrity of the sound, and it's normal. When I check it's proporties from the library, and "Test" the sound, it plays just fine, with no offset or anything.Here is the code I have for the button that causes this behavior:
Code:
var soundEffect_Button = new SND_EFFECT();
soundEffect_Button_instance_manual.addEventListener(MouseEvent.MOUSE_DOWN,SndEffectDown);
//Make the callback[code].........
View 4 Replies
Jun 17, 2010
I just tried this code from this url and it didn't preload my sound: [URL] is there more to it that I need to know? here is the link to the project. You can see that the sound takes several seconds, but the animation already plays: [URL]
View 9 Replies
Jul 20, 2009
I am trying to create an app that lets the user draw on a stage. I can start drawing, but the app doesn't stop drawing. I don't know if this is an Action Script issue or if I have created a structure that just doesn't work. Here is my code:
[Code]....
View 5 Replies
Mar 1, 2009
I have an animation with 11 layers, 4 of them have a regular time line, 4 others have a actionscript animation(moving left to right and replacing left when disappear(they are clouds)), 1 other is just a layers for actions, and the last 2 contains a MovieClip named "fond_mc" and "verdure_mc"(i'm french, in english: "background_mc" and "grass_mc").
[Code]...
View 1 Replies
Dec 5, 2009
I have a stop(); action on the last frame of my main timeline, but it's not working. The movie just keeps on looping.
I've tried:
addEventListener(Event.ENTER_FRAME,myFunction);
function myFunction(event:Event) {
stop();
}
but that doesn't work either. Neither does this.stop();
View 3 Replies