ActionScript 2.0 :: Sync Sound With Buttons?
Sep 1, 2006
i need to play a sound with voices in order to play an interactive animation, but i must have an stop or pause option (a button) that pause both, the movieclip and the sound track, and when pressing again the "pause" button, the movieclip has to continue with the sound track at the same place it stoped. I�m getting a headache trying to figure how to stop a sound in a specific moment and then play at the same place it stoped, and not from begining...
View 1 Replies
Similar Posts:
Jul 13, 2009
I have an animation and sound running along the timeline. And step forward and step back buttons. The sound is set to stream to keep the animation and sound in sync with each other. This works fine when played from the start all the way to the end. But if the step forward or step back button is pressed, the animation will fall around 5-10 fames out of sync with the sound. And will remain like this until the end.
How can this be fixed so the sound and aniamtion won't fall out of sync.
View 1 Replies
Mar 17, 2011
I have made an animation. I have a layer where I put sounds that execute on certain frames. No script are involved. When I play the movie inside Flash, everything looks good and sounds are syncing. When I make a preview of the movie, some of the sounds are out of sync. I have no idea why, it's the first time I get this kind of problem. All sounds are set to event, but I have tried with stream as well and get the same result.
View 1 Replies
Jan 29, 2010
I have a sound in my flash movie and I'm trying to lip sync to it but for some reason when I try to move that red thing across the frames to play the sound across it so I can go to each syllable so I can work the lips to it. But when I run the red thing across the frames there is no sound going through the speakers. When I ctrl-enter and play the swf I hear the sound what should I do?
View 2 Replies
Jan 16, 2011
I'm working on an animation where some guys sings and in order to make that look good, i need some good lip syncing. Since this is not short clips, but a whole song on 2-3 minutes, it's very hard for me to make the lip sync perfect because I have to replay from the beginning in order to hear the music. So question one is: Are there a way that I can play the movie in the middle and still hear the music? And so the second question is that I can barely see the sound waves in the Music layer, even though there's lots of music. Here's a picture of how big the sound waves are: And that's in the middle of the song! The problem is not that the music is too low, because it's quite high. So question number two is: Are there a way that I can make the soundwaves bigger in the music layer without affecting the music itself?
View 1 Replies
Jun 17, 2009
In Flash, when I use a sound, I can set its type to Play, Stream, etc., right? "Play" just plays the sound directly, while "Stream" makes it adhere to the frames.
Purely in Actionscript, is there any way to make a Sound object behave the same as the "Stream" type? That is, make it sync to the actual framerate of the application, instead of just making it play regardless of the frames? I need this because I'm designing a game where the audio needs to be consistent and repeatable.
I know that the default behavior of Sound objects is the standard "Play" type, because if I have something like this[code]...
View 0 Replies
Dec 30, 2011
I am aving a problem managing the sound in my application. Here is the situation.I have ten frames in the main timeline and on each frame is a movieclip, inside of which i need to put sound (Each movieclip plays a different sound). Currently I load the sound dynamicly from library and everything works fine - the application plays sounds according to the current frame.
Problem is that each of the movieclips contains also an animation (two characters talking) and I need the animation to be synchronized with the sound. And since I am loading the sounds via actionscript, it has no sync and when the framerate drops on slower computers, the animation lasts longer then audio. To solve this, I tried to put the sounds directly into each timelines of the movieclips and set the "Sync" property to "Stream", but the result is, that when I call the gotoAndStop(5); method, all the sounds placed in movieclips in the previous frames (frames 1 to 4) play as well and all the sounds are playing at the same time.
View 1 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
May 16, 2010
I've run into a bit of a problem using Adobe's CS3 flash program in terms of lip syncing... I can place the sound files in the timeline at whichever point I like and so forth, but I have no way to play them in such a way where I can adequately make lip syncs. It's hard to explain, but in flash MX I would merely click the timeline, drag the cursor along it, and it would play the sounds as it did the frames, one piece at a time. That way I could tell where the consonants were and therefore where to change my characters' lips. This is not the same as simply hitting "enter" and letting the sound play in its entirety.
View 4 Replies
May 18, 2011
I've made a slide show with three pieces of audio that are set up to play with certain images.So you can imagine when the video is paused but the sound continues playing everything gets a bit messed up.
I have each audio on a different layer and none of them overlap, just fade in/out to one another.[code]...
View 1 Replies
Sep 26, 2008
Is it possible to add 5 movieClip in the main timeline, and add for each movieClip a Sound object at frame 5, so that when I play the main timeline, all sound are played simultaneously. Because if I store all Sound object in array, and I do for example (see attach code). That's correct ? Because the play method of Sound class have may latency.
View 1 Replies
Jun 16, 2004
Is there a way to synchronize 2 sound events to play simultaneously? It's vital that they begin at the exact same time (aren't started asyncronously).
View 2 Replies
Jul 3, 2009
whenever I set my sound to stream and continue to make a movie with multiple scenes. The audio and video get disgustingly out of sync sometimes even off by 30 seconds. I just started an animation its only 10 seconds long with two scenes and the AV is already off by about 5 seconds. Ive worked around this by avoiding scenes altogether but i really don't want to have another 5000 frame scene. I discovered this problem in Flash MX and Im quite annoyed that it still has't been fixed 3 years later!
View 1 Replies
Nov 7, 2003
I have a .swf playing some background tunes, I have the soundsOff button working, but can't find some basic action to get the sound started again?..
View 2 Replies
May 13, 2009
I´ve made a couple of simple buttons and I have placed a sound on the over frame, when I export the swf the sound sometimes get very distorted and in a browser too, so I made a movieclip "button" instead and attached the sound and the same thing happens!The sound is a mp3, a short "classic" click.
View 2 Replies
Jul 11, 2009
I have a rollover button and I have assigned actionscript to play a sound when the button is rolled over.
However when the sound plays, it seems to overlap the sound and play it many times! I know it is not repeating the sound as I have tested it with a song and it plays the song many times overlapping, rather than repeating it.
I have the code used below:
[Code]...
View 2 Replies
Dec 9, 2010
I've been trying to make a sound-loop player for quite some time now (i'm new to as3) and i'm pretty close to do it but still Ok, i've made six letters converted them into buttons and i want them to play a different wav sound loop each one whenever i click on them and to stop the sound when i click again.This works fine for the first button but not for the rest of them because i dont know where to insert the similar code for the rest of the buttons.
import flash.media.Sound;
var sound:Sound = new The_Rloop5();
var soundControl: SoundChannel = new SoundChannel();
[code].....
View 8 Replies
Apr 1, 2009
I'm an intermediate flash user and I've made a file for my kids in class that has some sound on-off buttons. they are set to play once or loop depending on length by simple mouse click. they will play simultaneously if more than one is clicked individually on the page. I'm trying to make the page so the kids can just select the sound button icon, drag as many of them as they want (usually 2 -4 sounds at a time) into a box at the bottom of the page where they will then just play and loop. if they are dragged out of the box, that sound will stop. if another is dragged into the box it's sound will then join the ones that are already looping.
View 3 Replies
Apr 15, 2010
Is there any way I can have multiple sound buttons that works as stop buttons for each other? I mean.. I now got 3 buttons that start 3 different songs, but they overlap each other when I press more than one. I'd like Song 1 to stop when I press Song 2 or 3. And vice versa
View 3 Replies
Aug 25, 2004
I want to load a sound to one of my buttons. I think I've got the scripting, but how do you put them "together" snav2.start("snav2"); - (I think)...is my scripting for my sound (where snav2 is my symbol linkage propery name)
and then
on (release) {
getURL("about_us_1.htm", _self);
}
So, where do you put the sound scripting in?
View 2 Replies
Nov 8, 2009
I am using actionscript 2.0 and I am trying to create multiple sound buttons that trigger multiple different .mp3 files via mouse click.I have gotten it to work with one sound file using this actionscript [code]but as soon as I add another button and try to link it to another file it does not work.I would like to make it so that even if I click another button to start another sound, the first sound keeps playing.
View 1 Replies
Jun 12, 2010
I�v build a simple flash projector to offer to my local fire department Essentially they used to in internal audio alarms to warn firefighters when there is an accident, fire, aggression, etcIn the version 1.0 they click several buttons, one to play the alarm sound, otherto announce the vehicle or vehicles that goes out, and a last one that says what is occurring.
The problem they report is that the sounds play immediately when you click in each of the buttons, and even the sound overlaps the other, which makes they click on each button and have to wait for the sound to finish and then click next. All this is normal because I associated the sounds to the buttons. What do I need to do the flash in this order in the version 2 of my projector:
1 The Fireman choose the type of alarm you want to play and click the button corresponding (but do not want the sound to play now) let's imagine that he pressed the button "alarm 1"
2 The Fireman choose (s) vehicles which are going out to the occurrence (but do not want the sound to play now) let's imagine that pressed the button "ABSC01"
3 The Fireman choose the type of occurrence (but do not want the sound to play now) we will imagine that pressed the button "fire"
4 finally the fireman holding down the "PLAY" (the green on on the top of the image) and this Makes the sounds selected to start playing in sequence, liker "Alarm 1" then "ABSC01 "and then" Fire "
Logically speaking I believe that each button must declare a variable associated with every unique sound, and then pressing the button takes the variables and plays them in sequence and without overlapping sounds.
View 1 Replies
Apr 10, 2009
I have a scene with a voice over. I have split the voice over in to multiple sound files (mp3). The voice over plays correctly as long as you don't use the btns. When the forward btn is used the the file goes to the correct frame in the timeline but won't play the sound. Next issue, after pausing then using play the scene plays but without sound.
[Code]...
View 5 Replies
Oct 24, 2009
I'm just getting into learning ActionScript, I'm using 2.0 for the time being. Anyways, I know how to get clicking buttons to control the sound, but mostly that has just been a matter of muting with the "stopallsounds" function. What I wanted to know is if it is possible to get the keyboard to set the volume at 20%. For example, when you him the "down" arrow key, it goes down to 20% volume automatically.
View 1 Replies
Jul 28, 2010
First check this website:Go to the sound menu, and try to play any of the songs. Try the first one, than try it from the bottom.You will notice, that for a few seconds the buttons are not working. After a while they just start function.The Actionscript is on the "playBtn_mc":
var my_sound5:Sound = new Sound();
my_sound5.loadSound("zene5.mp3", false);
play5_b.onPress = function() {
[code]......
View 0 Replies
Dec 2, 2010
I am working on a Holiday Card for work, with a sound loop and an On/Off button. I used a boolean variable with and If/Else statement to check if the user had turned the sound off, as the movie looped back around to the beginning. After a lot of trial and error, I've gotten it to almost work properly... the buttons work correctly and the sound will stay on or off (after the loop) depending on what the user chooses. BUT, I cannot get the music to automatically start playing when the flash movie starts... the movie starts with the sound off. Is it possible for one of the seasoned AS3 veterans to take a quick look at my code below
MAIN CODE:
---
var pausePoint:Number = 0.00;
var isPlaying:Boolean;
var soundChannel:SoundChannel = new SoundChannel();
var sound:Sound = new Sound(new URLRequest("GlidingOnAir.mp3"));
[Code]....
View 3 Replies
Nov 7, 2003
I have a .swf playing some background tunes, I have the soundsOff button working, but can't find
some basic action to get the sound started again?....what's the trick?
View 2 Replies
May 21, 2004
Anyway, you see that the sound is on a seperate layer, with gotoandplay(1); or w/e on the end... so it indefinetely loops if left to it's own devices.
Now the actions for the play arrow button are:
[Code]....
Techincally, as to my VERY BASIC A/S knowledge, this should work right? I also tried instead of "on (release)" I tried "onClipEvent (mouseUp)"
View 8 Replies
Apr 10, 2008
AS2 Trying to figure out to add sound effects to my buttons (which are actually mcs) in this file. I'm familiar with adding sound effects to "regular" buttons using the button state frames, but I have no idea how to go about adding them to these buttons (for rollovers and clicks). My FLA file can be found and downloaded here: [URL]..
View 1 Replies
May 12, 2009
I have to buttons that control the volume. They work fine just that I want to stop when the volume hit 100 and also when you go down to stop at 0. Right now it will go up and down then start the opposite way. I am not quite sure how to stop that(with a if statement).
[Code]...
View 1 Replies