Flash :: Delay Between Two Sounds?

Jun 3, 2011

ask:i want to create an audio sequence.there are 8 predefined sound-starting-points in the timeline.for each starting-point, the user can select wich sound is played (dropdown menu).when the user made his choice for all the 8 bars.actionscript should gather this information and create a fluid sequence of these 8 sounds.then there will be a "play" button available for the user to start the sequence.the sounds don't have to be synced to a button or so.there is time for actionscript to put the sequence together.problem:when i put two sounds directly one after another in a movieclip, there is no delay between the sounds, which is exactly what i want, but i can not control which sound is played through actionscript.when i use actionscript, there is a delay between the sounds.here is what i tried with as.this is placed in the frame where sound2 should start

if (_global.Sound2 == "Piano" {
var SoundA:Sound = new Sound ();
SoundA.attachSound("Piano.mp3");

[code].....

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Removing Delay On External Sounds

Apr 26, 2011

I am building a small quiz in flash, where the user gets a question and 3 answers, that is both shown in text and read as external sound (mp3). I am calling a function to show and read the next answers when the first answer has been read. The text is shown immidately but the sound takes around 6-7 secs. to load......(and it is only 60 kb) how can I avoid this?

My function looks something like this
function readAnswer(){
my_sound=new Sound();
my_sound.loadSound("answer1.mp3",true);
my_sound.onSoundComplete = function() {
trace("answer finish");
//next answer
_root.readAnswer();
}}

View 1 Replies

ActionScript 2.0 :: Delay Before Sounds Start Playback?

Jul 29, 2007

I tried either from code like this:

public function onRollOver()
{
_root.dbg.text += this.beepSound + "

[code]......

View 1 Replies

Flex :: Play Multiple Sounds With A Custom Delay?

Dec 9, 2009

I need to realize a multiple-track player. The user can upload multiple tracks and mix (play them together). My problem is to allow the user to define an exact start position of each track to allow a synchronization between them, something like this:

Track 1: start at [x] sec.
Track 2: start at [y] sec.
play/stop

where the user can set the x and y. I've tried to realize it with AS2 (using netstream and setInterval) and AS3 (using netstream or sound and timer). Only if I set the same x and y both tracks are playing simultaneously.

View 1 Replies

ActionScript 3.0 :: Slight Delay In Button Sounds During Sound Stream?

Jan 30, 2009

I have some sounds on buttons:

Code:
var mySound:Sound = new myLibrarySound();
myButton.addEventListener(MouseEvent.CLICK, playSound);
function playSound(e:Event):void

[code]....

... and that works fine. I then have some streaming music:

Code:
var myStream:Sound = new Sound();
myStream.load(new URLRequest("myPath.mp3"));
myStream.play(0);

... and that works fine too. Now, however, the initial button sounds have a slight delay -- I'd estimate about 150-250 ms. It's enough that rollover click noises happen about the time you click, and click noises happen about the time you release, etc. Now, here's the KICKER. It only happens in FIREFOX. CURSE FIREFOX. Seriously. I've been having so many Flash issues in FF3, it just drives me nuts. Firefox and wmode is a pain, Firefox and sound is a pain, Firefox has been crap for Flash development lately.

View 2 Replies

ActionScript 2.0 :: Use With Music Is Affecting All Other Sounds - Button Sounds And Background Sound

Apr 16, 2010

I followed the mp3player tutorial (part 3) from [URL] and got it working fine. Only problem is that the setVolume I'm trying to use with my music is affecting all my other sounds - button sounds and background sound. I'm aware of the createEmptyMovieClip/attachSound approach and got it working on my other sounds. But Lee's tutorial-mp3player is using a slight different technique, and so my normal approach doesn't quite work.

[Code]....

View 7 Replies

ActionScript 3.0 :: Synchronize Sounds Perfectly To Do A Kind Of Audio Mixer Using Different Sounds?

Feb 7, 2011

I want to synchronize sounds perfectly to do a kind of Audio Mixer, using different sounds. [URL] does it perfectly, I've been researching and researching and I just don't know how to do it! How does [URL] synchonize audio so perfectly? you can even change sounds and the new ones will come on time! How do I do that? Is it just Action Script? or something else?

View 1 Replies

ActionScript 2.0 :: Create A Delay Via SetTimer, SetInterval Or Delay?

Feb 23, 2009

I want to create a function based (not frame) delay of about 10 seconds to the function at the start of a flash movie, the code only needs to run once.I'm very new to actionscript and have been given links to SetInterval and SetTimer examples but they all seem to be very complex.The function is below. I believe it's possible to add the commandTimer(delay:Number, repeatCount:int = 0) how me to a simple example.

onClipEvent (enterFrame) {
framePos = int(_xmouse / 100 * _parent._totalframes);
if (framePos < 0) {

[code].......

View 4 Replies

ActionScript 2.0 :: CS3 Getting Sounds To Start Again After Using Stop All Sounds

Nov 29, 2009

I have a film with 4 scenes in it: Here's a link to the film and as you can see the film does not play the music the second time because of the StopAllSounds function which is probably the wrong code to use. The first scene is just a button with 1 frame, a stop action and a music clip. The second scene is the film. The third scene is the credits fourth scene is a Play again button. I have a Stop all Sounds action on the fourth scene because if I do not use it and I press the Play Again button, the music from the first song keeps playing but also the music from the film starts up again so it starts to play twice. What I want to know is, how do I get the music to stop at the end of the film but start up again once I hit Play Again?

I am using Flash CS3 if that helps and using Actionscript2.

View 2 Replies

Add Sounds In Your Flash?

Jul 5, 2009

how do u add sounds in your flash?im using macromedia flash pro 8

View 3 Replies

Long Delay On Everything In Flash?

Jun 4, 2009

I Have Flash CS4 and a pretty decent system with Vista and 3 GB of RAM.  However, whenever I click on anything in Flash, it takes about 3 or 4 seconds for it to become active.  If I click a keyframe, the stage won't come up for 3-4 seconds, if I click the text tool, the cross hairs won't come up for 3-4 seconds, etc.  It has been like this since I installed it...I am just finally getting my full of it.

View 3 Replies

Stop All Sounds For A Flash Control?

May 4, 2009

I need to turn off/on all the sound for a flash animation. The flash control contains a layer named sounds that has 5 sounds associated with it in keyframes at different time. How can I simply turn on/off everything using a symbol button.

View 2 Replies

Professional :: Importing Sounds Into Flash CS5?

Sep 15, 2010

I am using Soundbooth to record some sounds. I'm trying to save them as either a MP3 or WAV,but no matter bitrate I use for either file type, I get an error when I try to import it into Flash. I have the newest QT installed from the wormy fruit vendor, does not make a difference. I can save it as an .asnd and import it just fine, but that file type is huge.The files that give me the error open just fine by themselves in WMP

View 4 Replies

Professional :: Sounds In Flash File

Oct 21, 2010

If i use sounds in a flash file, sometimes the fps will slow down. How do you get around this?

View 1 Replies

Flash :: Stop All Sounds Permanently In AS3?

Mar 30, 2010

I have a main swf which has sound on/off buttons. It has many SWF's which are loaded into different placeholders at different time. All of them have different sounds in them. In addition to that there is a music loop going on in the background.Now, this perticular swf lets call it Father will be placed in some swf later on. What I'm trying to do right now is when the sound off button is pressed turn off all the sounds permanently so the child swf's and their sounds stop too.I have found a way in AS2 :

global = new Sound( ) //no movie clip target path.

and add the following code to your off button.

on(release){
global.setVolume(0); //mutes all sound
}[code]....

which ofcourse does not work for AS3. So how can I stop all sounds permanently in AS3? Secondly what if I have one sound (my background loop) which I want to keep going on.

View 2 Replies

Actionscript3 :: Flash - How To Mute Different Sounds

May 24, 2011

i want to have the music always playing and the ability to mute different parts. It is for a project where you click on different people and they come to life to play music. a stop and play would not have them in snyc. I have not been using action script long

var my_sound:Sound = new Sound();
my_sound.load(new URLRequest("triumphant.mp3" ) );
function setMute(vol){
var sTransform:SoundTransform = new SoundTransform(0);

[code]....

View 1 Replies

ActionScript 3.0 :: Dynamic Sounds In Flash?

Aug 31, 2011

I'm quite new to actionscript 3, but have been playing with some code to generate beeping sounds in flash. It's quite fun, however, I am trying to find a way to space the beeps out for example, having a beep play for one second, followed by a one second break, before another beep plays.

Code:
import flash.media.Sound;
var mySound:Sound = new Sound();

[code]........

View 1 Replies

ActionScript 2.0 :: Sounds Loaded Into Flash?

Apr 26, 2005

My project calls for a single swf that, sent a filename variable through the page in which it is embedded, will load a mp3 file and play it on demand. Whole process is called streaming. I got that down cold. But visualization! My client tells me that he wants visualization, like in Windows Media Player! Of course, I said, you can't expect something that graphically appealing, out of Flash. But I still must relate some kind of visual aspect to the sound imported, updated only via script.

In fact, I was told by this needy consumer that the little sound-listening console at Flashkit would be a perfect result. Either a bunch of bars, or a windows-media-player-esque wave scope. That's what I need, and I have no idea where it start with getting Flash to detect different qualities of the sound.

The only thing I could imagine would be user-set volume, balance, etc. but that would result in a box being resized by anything the user changes, so it's out of the question.

View 4 Replies

ActionScript 2.0 :: Controlling 2 Sounds In Flash?

Feb 7, 2007

I have some strange problem while using more than one sound that I want control.

Code:
var myMusic:Sound = new Sound();
myMusic.attachSound("music1");
myMusic.start(0, 999);
myMusic.setVolume(50);

[code]....

When I try to reduce sound volume of 1 sound, volume of all sounds is beeing reduced?!The same situation is when I use tween comands like: this.myMusic.volumeTo(5, 1, "linear");

View 1 Replies

ActionScript 2.0 :: Random Sounds In Flash?

Jul 15, 2003

how do u make something in flash, a file without frames or tweens, have it randomly loop sounds that are in its library? is this possibel?

View 6 Replies

IDE :: Flash Hiccupping When Playing Sounds?

May 4, 2010

I'm working on a game in Flash, and everything's going along great, until I start trying to play sound effects. The minute I start trying to play a sound, the whole app seems to "hiccup", frames get dropped, and things generally get ugly for a little bit. I'm loading sounds by copying them into my Flash CS3 library, exporting them for ActionScript with a Base Class of flash.media.Sound. I'm playing them through a class that looks a little something like this...

Code:
public class SoundPlayer {
private var _mySound:Sound;
public function SoundPlayer() {
_mySound = new ExampleGame.SoundFromLibrary();
} public function playSound() {
_mySound.play();
}}

This all seems pretty straightforward, so I can't figure out why Flash is complaining when it first tries to play the sound. The sound itself is a 40k. mp3 file that lasts about 2 seconds. Not the shortest sound in the world, but I'm sure I've heard larger sounds in games.

View 3 Replies

ActionScript 2.0 :: Flash 8 Preloader Delay ?

Jan 13, 2007

I have a rather large flash piece (17MB) that has a preloader that doesn't appear immediately.The screen remains black and then after a pause, the preloader pops up with 20% already loaded.I'm unsure if the file is so large that it takes that long for it to run calculations,or if something is different with flash 8,or what is hanging things up. On the preload scene I have one .gif that is 6.5kb when compressed, a simple vector button, and a vector based graphic for a cursor change that has the appropriate script attached.I would like to either correct the problem or create a preloader for the preloader. Here's the script I'm using:

myLoaded = Math.round(getBytesLoaded());
myTotal = Math.round(getBytesTotal());
myPercent = myLoaded/myTotal;[code]........

View 3 Replies

ActionScript 2.0 :: Timing Delay In Flash MX?

Jun 12, 2003

i have a little Query. iv looked on the past forum posts but the solution i found did'nt work "for me".I was wondering how to delay an action with actioniscript i.e. press wait 10seconds then perform action/function i have a crude way but i it calls for animating in the time line and i want to do as little of that as possible

View 5 Replies

ActionScript 2.0 :: Create Delay In Flash 5?

Feb 21, 2002

Does anyone know how to create a delay actionscripting in flash 5?

View 1 Replies

ActionScript 2.0 :: Stop All Sounds In Flash Project?

Aug 13, 2009

I have a question for stopping all sounds in flash project. And i mean all, buttons, effects, etc..The thing is, I have manually placed various sounds on different frames, on different MCs and buttons inside my flash.Is there any function that will just mute my sounds, or I have to create object for each sound?

View 1 Replies

Change The Path To Sounds In Flash To Relative?

Mar 19, 2010

I have to have relative paths to the sound file assets but for some reason when I change them they are all absolute. Even when the file is in the same directory as the .fla.How can I change the path to sounds in flash to relative?

View 1 Replies

Stop All Sounds For All Flash SWF Embedded On A Page?

Jan 23, 2012

I have 100 swf embedded in a page. The swf are various forms of individual audio playbacks.- an swf button that loads an swf into it that has audio on a timeline streamed. AS3
- swf that has streamed audio using scripting so there is no preloading. AS2Since I have 100 and the user could press all 50 at a time and have this giant noise of sounds and bog down their bandwidth. Is there anyway of:- stopping all playing of swfs that has streamed audio using timeline. I guess that could be like a ALL stop frame command??- stop all sounds coming from the streamed audio swf

View 11 Replies

ActionScript 3.0 :: Dynamically Stretch Sounds In Flash

Jan 26, 2009

I think this might be a tough one: Is it possible to stretch the playback of an MP3 file using Actionscript? Time stretch is when you slow a sound down but don't change its pitch. Basically, it works by chopping up the sound into milliseconds and splicing duplicates of the bits in, thereby stretching the sound.

View 1 Replies

ActionScript 3.0 :: Upload Sounds To A Flash Site?

Sep 27, 2011

i'm a little noob about As3 indeed i'm three days since my first exam on flash, and i'm almost done completing my personal site.

I have followed a tutorial to built a simple music player with play stop and mute buttons and only one track loaded. And it's working fine when i try the site on my computer, but when i upload the flash site on altervista and test it online the track file isn't loading

[Code]...

View 5 Replies

ActionScript 2.0 :: Putting Sounds In Flash Game

Jun 11, 2005

im having problems putting sounds in my flash game....im using flash MX and im making a tile based RPG game ....i got the background music playing in the first map...but when my character enters the second map, the music stops and play all over again in the beginning.....i want the music to be continously playing while the character is on map 1 and map 2...how can i remedy this? im using this simple A.S for the bg music in map 1:

[Code]...

i tried to remove the line stopAllSounds();....as a result, the music became overlapping when the character transfers from one map to another. Also is there any other way to make maps easier?. coz ryt now im using 2-dimensional arrays for my map....i only have two 640x480 maps now and it's starting to get confusing editing them

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved