ActionScript 1/2 :: Restart Audio After StopAllSounds?
Jul 10, 2009
I have rather large project that contains several swfs flvs with audio. The project is published in Captivate (which renders a main swf file). After the preloader screen, a lot of the audio files start playing at once at the beginning of the presentation. I have tried inserting an swf with AS2.0 command "stopAllSounds". It works as intended and stops all the cacophony. But then, none of my audio plays throughout the 7 minute project. Does anyone know how I can restart the audio?
View 1 Replies
Similar Posts:
Apr 3, 2009
I have a a movie which is a training...I have audio along with slide that change as the veiwer watches. I have created pause buttons for the audio and will be adding in stop features to the movie itself stop however my problem is. When I pause the audio and then go to restart the audio does not restart at the place it paused. It is ramndom in its restart. Like if the phrase was "see you in september" and I pause in the middle of "september" it will not restart in the middle of september...might start at "see" might start and "in" I do not get it. Here is my script which is in the first frame.[code]...
View 1 Replies
Apr 4, 2010
I would like to keep the video sound from continuing after I go to the next frame in this file. Should I use "StopAllSounds" and if so where do i put it in the code?here is the code:
// Button ListenersnextBtn.addEventListener(MouseEvent.CLICK, nextSection);prevBtn.addEventListener(MouseEvent.CLICK, prevSection);
////////////////////////////////////////////////////////////////////// /////function
[code].....
View 8 Replies
May 28, 2008
Is there a way to use the stopallsounds command with an exception? I want to stop all narrations (in a presentation) when a button is clicked but keep the background music going. So i want to stopallsounds except the background sound.
View 9 Replies
Nov 23, 2009
i have a music player in my shell that plays background music. In swf files that are embeded (two layers in) I have videos playing.i want to make a button that stops the background music. Its too hard to communicate with the music player which is many layers away so i think i should use stopAllSounds.However, after i press it, it also disables the videos. how do i disable the stop sounds function, so that I can play videos, without turning the background music back on?
View 1 Replies
Apr 3, 2007
I have created a game where all the main actionscript takes place in one frame.For extra functionality I was going to add a button to toggle on/off sounds, after searching this forums and others Im left confused how to implement this.If i choose to use stopAllSounds() Im aware it only stops the current sounds and will not interfere with sounds about to occur.
Collision detection and random sounds occur within my game on an interval, is there a simple way to turn off all sounds permenantly? The only other id would be a button with a toggle and use multiple IF statements to check status of sound on/off.
View 1 Replies
Mar 11, 2009
I am using stopAllSounds(); to stop all background sounds when i enter specific frame in my main movie and it works fine but how do i get sounds to continue to play when i exit this specific frame?
View 1 Replies
Aug 23, 2009
I'm building a dynamic gallery that supports SWFs for individual slides. In order to prevent background sound from carrying over from a previous slide to a different category page, I have attached stopAllSounds(); to navigation menu buttons. It does its job, but it turns off the sounds abruptly. I'm using alphaTo for transition effect from one page to another, and I'm wondering if there is a command that stops playing all sounds in gradation, so that I can make it consistent with page transition.
View 5 Replies
Nov 21, 2008
How can I resume sound after after i apply stopAllSounds function?
View 3 Replies
Oct 13, 2002
Dynamically loading mp3's. I have 10 buttons, 1 stop and the others track 01 - 09, these are all in one .swf file. The buttons are all on one layer, on another I have defined all my sounds like so :
firstSound = new Sound();
firstSound.loadSound("track 01.mp3");
through to
ninthSound = new Sound();
ninthSound.loadSound("track 09.mp3");
Then I have the actions for my buttons
on (press) {
//Track 01 Button
stopAllSounds();
[Code] .....
I have uploaded the 9 mp3's, the swf & html file to same folder and this is what happens: [URL]. When any of the 9 track buttons are pressed 7 of the nine mp3's download all at the same time from pressing 1 single button (no track 3 or 9 which play fine normally and have definitely been uploaded) and none of the sounds work. But, when I refresh the page the 7 mp3's that were downloaded now work. The stop all sounds still work on buttons 3 & 9.
View 7 Replies
Aug 7, 2006
I have an external SWF file and when I click on a "skip intro" button, right now I have a StopAllSounds(); on an onclick, so it stops the sound of the external swf, is there a way to fade out the sound instead on an onclick of an embeded sound on an external swf?
View 1 Replies
Aug 6, 2010
If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video?
View 1 Replies
Jul 30, 2010
In have 10 scenes, each will having different audio files. Each scene will have buttons which take next and previous sc�ne. I am facing difficulties on controlling sounds.
I have placed action �stopAllSounds()� , because of this it will stop sounds in next scene also. I can�t call sound object as they are many.
View 1 Replies
Mar 27, 2008
I made an animation. When it gets to the end I need a button script that will replay the movie. I tried:
on(release) {
_root.gotoAndPlay(1);
}
But this script only restarts the main time line. I have nested movieclips that don't get restarted. Is there a simple solution to this?
View 1 Replies
Aug 26, 2008
I have a flash file with the script and animation all on frame 1 of the timeline. After the script finishes I have a button appear that says "try again". I just can't figure out how to get the flash to restart or replay as if it were being played for the first time since everything is on 1 frame (which I'd liek to keep it that way if it is possible). Is there an event that will do this?
View 3 Replies
Nov 28, 2004
i am using this code for my timer
_root.onEnterFrame = function() {
time = Math.round(getTimer()/1000);
if (time == 120) {
[code]....
View 6 Replies
Jun 11, 2010
How to restart swf file, which has one frame and all staff in actionscript code? Loading copy at the end multiplies memory usage until it crash.
View 4 Replies
Aug 25, 2009
I ran a simple live video streaming application for the first time with actual users and ran into a couple of serious performance issues that had not turned up during testing. In this instance there was one video stream from a live web cam and used FMLE at 150 kbps using VP6 and MP3 @22k. There were 16 clients and everything worked pretty good for about 30 minutes. (although some clients said their audio and video were out of sync by up to 3 seconds)
Then individual clients would have either the video freeze or the video would continue and the audio would stop. These clints had to "disconnect" and then "connect" again to the application. This happened to all of the clients at one time or another for several minutes. I stopped and restarted the FMLE with progessively lower bandwidth settings down to 75 kbps but still clients were having the same issue.
I eventually stopped the FMLE and used the applications built in publisher at 45 kbps and that seemed to eliminate the freeze/dropping issue. But of course the video quality was very poor and some clients still reported that the audio was out of sync with the video. The server hosting the FMS application is a quad processor dell with lots of memory and network connectivity. The Flash Media Admin Console performance graph showed the total Bandwidth as 3 Mbps at maximum.
View 8 Replies
Mar 11, 2010
Anyone know of a skinnable audio player (or something similar to Windows Vista audio control in task bar) that i can embed in my website?
A player that can be customized to use a 'speaker' icon instead of a 'play' icon. When the speaker is clicked, the volume can be adjusted or turned off. The option of being able to autoplay and set the default volume level.
View 1 Replies
Aug 4, 2009
I am converting from .FLV's to .F4V. Video outputs fine but the audio sound stops after a few seconds from the beginning.I have tried many different settings for the audio with no luck. Also, tried on a colleague's machine who is running CS3, which works fine, so something is buggy in CS4...
View 1 Replies
Mar 11, 2010
Because the player optimizes framerate, antialiasing etc dependent on the performance capabilities of the platform upon which it is running, it was nearly impossible to ensure animation syncronization w/ audio. If the audio were on the timeline you could set sync params to stream, but if the audio is loaded programically forget it .. well until AS3 ..The following code throttles the player framerate to lock step the animation to the audio .. not perfect but the principal works ..
View 1 Replies
Sep 6, 2011
Let me first establish what I want to do:My user is able to record voicenotes on my website, add tags to said notes for indexing as well as a title. When the note is saved I save the path of the note along with the other info in my DB.Now, I have 2 choices to do the recording, both involve a .swf embedded in my site:
1) I could use Red5 server to stream the audio to my server and save the file and return the path to said file to my app to do the DB saving, seems rather complicated since I would have to convert the audio and move it to the appropriate folder that belongs to the user in a server side Red5 app, which I'm not very aware of how to build.
2) I could simply record the audio and grab its byte array, do a Base64 encoding on it and send it to PHP along with the rest of the data that is necessary (be it by a simple POST or an AJAX call), decode it on the server and make the file with the appropriate extension, audio conversion would also occur here using ffmpeg, this option seems simpler but I do not know how viable it is.
View 1 Replies
Apr 1, 2012
Is there a way to stream and audio line level feed rather than the audio from a computer's microphone?
View 1 Replies
May 24, 2010
This code is part of an animation where the audio is set to "Stream" in AS2. When I change the audio file to an Event, the pause and play button don't stop the audio, but the animation still "stopAllClips". When it's set to stream, there's the infamous gap in the playback when it loops.
I've been struggling to figure out a smooth and efficient way to code this animation as an Event so it loops smoothly and can pause and restart all the layers in the same place.[code]...
View 4 Replies
Jul 2, 2010
My movie consists of 2 frames. the menu and the actual game. The actual game is a simple platformer. I recently added a button that makes the game "gotoAndStop(1)" back at the menu. but when I proceed to play the game again from the menu. my speed is doubled.
View 1 Replies
May 4, 2009
I have a number of scenes and would like to set up a restart button on the last scene to go back to scene 1 and restart.
View 4 Replies
Aug 21, 2009
how to pause the timer and restart that
View 2 Replies
Mar 1, 2010
I've built a pause and replay function into a children's book for a client. Since the narration is in song, I needed to keep the sound file in one piece, so I built a reverse pyramid with regular buttons throughout, truncated from the beginning with each progressive scene. So if you press the pause button at point 1 2 or 3, you are sent with a stop command to the first frame of scene 1 2 or 3, and then there's a "play" button on that first frame with this simple command[code]...
View 4 Replies
Apr 5, 2010
How do I restart FMS under unix? I tried./fmsmgr server restartbut it returnsServer:restart command:Server service restart not found. Exiting.
If i type ./fmsmgr server
it returns
Server:fms command:NPTL 2.5Usage: ./server {start|stop|restart}
[code]......
View 1 Replies
Nov 6, 2010
trying to restart the following,
import com.greensock.*;
import com.greensock.easing.*;
var timeline:TimelineLite = new TimelineLite();[code].....
View 1 Replies