IDE :: Dynamically Loaded Sound Playing Double Speed

Mar 21, 2005

Hi all,

I am loading an external .mp3 file into my movie using a dynamically created sound object:

var theMusic_sound:Sound = new Sound();
theMusic_sound.loadSound("sound/mylo.mp3", false);

theMusic_sound.onLoad = function(true) {
theMusic_sound.start(0, 5);
theMusic_sound.setVolume(25);
};

However I find that when I run the movie, the sound plays at a higher speed (chipmunk music!). The clip was one that I created myself, its a 48kbs mono .mp3 file

Also, I am having trouble making an MP3 that loops perfectly. I have trimmed the sound perfectly in Nero wave editor, but the encoding process appears to add a short pause at the start and end of the file, which produces an annoying gap in my loop.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Control Speed Of Sound Playing?

Jun 29, 2010

is it possible to control the pitch and speed of playing a sound file via AS3? i want to simulate the car engine voice by movement speed, i need to change pitch and speed on runtime...

View 2 Replies

ActionScript 2.0 :: Sound Visualizations - Dynamically Read The Sound Levels Of A Loaded MP3

Jan 14, 2005

Does anyone know of a way to dynamically read the sound levels of a loaded MP3 to help produce dynamic sound visualization in Flash?

View 5 Replies

ActionScript 3.0 :: Double Speed When Restart?

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

ActionScript 3.0 :: Sound In Loaded SWF Not Playing?

Jan 27, 2009

I have an application, that has a movieclip in it. I'm creating a loader, loading another SWF and appending it to that movieclip. This is working perfectly fine. However, in the child SWF, there are a couple sound clips in the library that fire at certain times. If you play the child SWF by itself, the sound clips fire just fine. When loaded into the movieclip, nothing is playing.

View 4 Replies

Playing Sound When Flash Is Loaded?

May 14, 2009

I have buttons with sound attached in over state and that works just fine, but this means that you are going to hear sounds only when you move cursor over button, how can i make some background sound to play from the moment flash is loaded, even when buttons are inactive, my background image looks like some electrical equipment and and i want to make it sound realistic (sound clip must to be set to loop) and must to start at the moment flash is loaded?

View 1 Replies

ActionScript 3.0 :: Record A Sound File And Then Playing Back Dynamically?

Mar 5, 2012

I am currently designing an interactive magazine through flash and was wondering if there is any way that the user of the magazine upon opening it can be prompted to record their name and then have that voice recording played back when they perform certain actions while interacting with the magazine?

View 2 Replies

ActionScript 3.0 :: Start Sound - Delay In Loaded MP3 Playing

Feb 2, 2009

I have recently updated to Flash CS4 and AS3 from Flash 8 - apart from one issue I have with the Sound Object. There seems to be a delay in the loaded MP3 playing when told to. This means that I am unable to add SFX to the game I am developing for a client, because the sound plays about 1-2 seconds after it is told to play. How to tee the Sound up, so that it plays immediately?

The process I am using is this:
Class defined to load all game assets defined in XML

All Sounds are loaded into their own Sound Object and a reference to each is held in an array and passed to the relevant Class (i.e. Player). The relevant Class tells the reference to the Sound to play - it plays, but 2 seconds after the collision detection Event has told the sound to play.

View 4 Replies

ActionScript 1/2 :: Sound Objects In Loaded Swfs Not Playing?

Jun 1, 2009

I'm working in ActionScript 2.  I have a series of swfs with Sound objects.  Works just fine when I play the swf.  However, when I load them into a loader, no sound. 

View 3 Replies

ActionScript 3.0 :: Check To See If Loaded Sound File Still Playing

Dec 29, 2010

Is there a way in AS3 to determine if a loaded sound file is still playing or not? I need to start an animation when a sound starts and stop the animation when the sound is done playing.

View 3 Replies

ActionScript 2.0 :: Sound Objects In Loaded Swfs Not Playing?

Jun 1, 2009

I'm working in ActionScript 2. I have a series of swfs with Sound objects. Works just fine when I play the swf. However, when I load them into a loader, no sound.

View 3 Replies

ActionScript 2.0 :: Playing Sound File When Movie Loaded

Aug 5, 2004

I have a problem with sounds in this movie. I have a sounds file that I would like to play as soon as the movie is loaded, but I dont want it to stream because I want to loop it and I want it to be done with AS. I saw a Tutorial where the sound would load as soon as the movie started but it wouldn't play until the play button was pressed. I want the song to play as soon as the sound is loaded. The Tutorial is Creating a Volume Control Silder. [URL]

View 5 Replies

Actionscript 3 :: Microphone Recording/saving Works In PCM Playback Double Speed?

Apr 29, 2010

I have a working mic recording script in AS3 which I have been able to successfully use to save .wav files to a server through AMF. These files playback fine in any audio player with no weird effects.

For reference, here is what I am doing to capture the mic's ByteArray: (within a class called AudioRecorder)

public function startRecording():void {
_rawData = new ByteArray();
_microphone.addEventListener(SampleDataEvent.SAMPLE_DATA, _samplesCaptured, false, 0, true);
}

[Code]...

The audio file plays at double speed! I checked recording bitrates and such and am pretty sure those are all correct, and I tried changing the buffer size and whatever other numbers I could think of. Could it be a mono vs stereo thing?

View 2 Replies

ActionScript 3.0 :: Remove The Loader But Its Content Still Playing I Know That From The Sound Of The Content Was Loaded?

Apr 20, 2009

How to remove a loader and its content using removeChild or any other way, I had removed the loader but its content still playing in the background i know that from the sound of the content.this is the my code for removing:

removeChild(getChildByName("SampleLoader"));

View 9 Replies

Actionscript 3.0 :: If Press Play Button While The Sound Is Already Playing It Has The Same Song Playing In The Background

Nov 13, 2010

I have a sound clip that I'm loading externally into my flash file. The code I'm using looks like this and is placed in the as layer on the first frame,

var mySound:Sound = new Sound();
var myChannel:SoundChannel = new SoundChannel();
var myTransform = new SoundTransform();
var lastPosition:Number = 0;
mySound.load(new URLRequest("introaudio.mp3"));
myChannel = mySound.play();
[Code]....

View 14 Replies

ActionScript 1/2 :: Stop Other Sounds From Playing While Current Sound Is Playing?

Apr 10, 2011

I am creating a game that has 6 movieclips all on the main time line of the game. Each movie clip has three buttons that when clicked plays, pauses or stops a sound clip.When I press any of the sound clip play buttons that sound starts playing, the problem is when I click any of the other sound clip play buttons those sounds also start to play. Is there a way I can disable the other sound clip buttons while the current sound is playing then enable all of the buttons when the current sound has stopped.
 
This is the code that creates one of the sound objects

[Code]...

View 3 Replies

ActionScript 3.0 :: Playing A Movieclip At A Different Speed?

Mar 10, 2012

I'm finding in my current project, a need for a method of playing animations (MovieClips) at a speed that is different from the stage framerate. I need to dynamically adapt animations, which i've created natively at 20fps, to play at 10, 40, or any other arbitrary value. Of course frame skip/stall is most likely the only way to do this - that is when playing slowly the animation may stay on the same frame for a number of stage frames, eg 1,1,2,2,3,3 etc.. and when playing fast, may jump over several frames to advance the animation faster (at the cost of a minor loss of smoothness, but that's fine.) eg, 1,4,6,9,11,14 etc. (the size of jumps wouldn't always be consistent)

View 3 Replies

Stop The Playing Sound And Start Playing The Button?

Oct 3, 2009

So I made a few buttons with sounds within them and when I publish it they work just fine. But what I want them to do is;

Say I click a Button.The sound starts playing.Then I click it again, before the sounds done playing.I want it to stop the playing sound and start playing the button I just clicked on, whether it be the same button, or a different one.Right now it just ends up sounds like an echo because it'll play it as many times as you click it.

View 2 Replies

Flash :: Playing Sound From Data Acquired From Sound.extract()?

Aug 1, 2011

I'm trying to play a sound using a technique found here (play the sound by sampling raw sound data gathered from the original with extract()), with the difference that the mp3 sound is embedded in the swf, not loaded externally. This is my code:

var soundBytes:ByteArray = new ByteArray();
var mp3sound:Sound = Sound(new Sound1_design()); // this is the embedded sound
mp3sound.extract(soundBytes, int.MAX_VALUE);

[Code]....

This works, in a way, except that the resulting sound is distorted (it has a kind of a metallic ring).

View 1 Replies

ActionScript 2.0 :: [FMX] LoadSound - Sound To Keep Playing While The Rollovers Load Sound

Jun 22, 2003

I am loading small sounds dynamically with the loadSound command. These small sounds are activated with a rollover. see script below. This works ok. however. i want the first sound to keep playing while the rollovers load sound. a bit like playing the piano. This works ok when i import all the sounds into the library and place them on their very own button. however the size of the flash movie increases to 140k. whereas when i load them dynamically the size of the movie is 20k. obviously i want to load dynamically.

But with dynamic loading each sound stops when another sound is rolled over, so that there is only ever one sound playing at once. I need to load the sound into a different level or something, so that the first sound can keep going while the smaller, shorter sounds play over the top. this is my script below. The first sound loads when the movie starts. This is the one i want to keep playing. Then there are the smaller ones with rollovers. does this make any sense? there's actually 13 little sounds.

[Code]...

View 3 Replies

Actionscript 3 :: Flash Double-click An Externally Loaded SWF?

Mar 18, 2010

I've got a class (which extends MovieClip) that loads in an external SWF (made in pdf2swf). That is added to another class which has declared doubleClickEnabled = true and I'm listening for DOUBLE_CLICK events.Problem is when the SWF is loaded my code picks up no DOUBLE_CLICK events, only CLICK events. I've tried it without adding the SWF to the stage and it does pick up DOUBLE_CLICK events.

class ParentClass{
...
public function ParentClass(){
...
mcToLoadSWF = new MovieClip();

[code]...

I've also tried adding the event listener to the mcToLoadSWF as well. No dice.

View 1 Replies

Professional :: Stop A Sound From Playing If It Is Playing Already

Dec 6, 2011

ok so i have a button that plays an animation for fire when held down. and when realsed goes to and stops and frame one. when it reaches the end of the time line it goes to and plays at frame 10 and goes back to the end of the timeline. I have a sound for the fire animation that plays for the effect. The problem is the sound keeps going untill its over even if the button isnt held down. and when the playhead reaches the end of the timeline it goes to and plays and frame 10 and it replays the sound. if i hold it down it will just keep playing the sound over and over from start to finish. what i want it to do it when i hold the button down i want it to play the sound and when released it stops the sound where ever it is at. I also dont the sound to play again if there is a sound already going to stop it from playing 20 sounds at one time it gets loud and you need asprin after about 5 seconds of that.

View 2 Replies

ActionScript 3.0 :: Assign A Sound To A Soundchannel Without Playing The Sound?

May 4, 2011

The thing I don't understand is how to assign a sound to a soundchannel without playing the sound. All the examples I've seen do this.

Code:
_SoundChannel = _sound.play();
_SoundChannel.stop();

And how can I set a SoundChannel volume to zero before allocating a sound to it?

View 2 Replies

ActionScript 2.0 :: Imported Video - Speed When Playing In Reverse

Jul 19, 2006

In my flash movie, I've imported a very small video file. When the video is done playing, I wanted the user to be able to click a button and the video would play in reverse. I've gotten this to work with the _currentframe and _nextframe properties, but when I play the movie in reverse it's not as smooth. Here's an example of what happens: [URL] Once the movie is done playing, click on it. When it's playing in reverse, you can see it gets a little choppy when the guy gets towards the top of the rail. Has anyone found a way to play the movies backwards without having the speed affected? Maybe I shouldn't use the _currentframe property??

View 4 Replies

Flash :: Change The Playback Speed Of A Sound?

Jan 17, 2011

I have a sound clip in flash that lasts 10 seconds. I'd like to play it back in a shorter time, and at a higher pitch.

View 1 Replies

Flash :: Dynamically Create New Sound Objects Based On Raw WAV / DATA Or Other Sound Object?

Jan 31, 2012

Is there any AS3 library or code-snippet that can create altered versions of a Sound object on-the-fly (at runtime)? Either based on:

An existing Sound object; A ByteArray object;

For example, say you have a "dry" sound of a gun-shot. You could:

[Code]...

View 1 Replies

ActionScript 2.0 :: Change Speed Of Animation Dynamically?

Jul 26, 2010

What would be the simplest way to slow down or speed up a movieClips animation using buttons for example?

View 4 Replies

ActionScript 3.0 :: Control Playback Speed Of Sound Files (mpeg)?

Jan 14, 2010

I am working on a project and I want to know if it is possible for flash to control the playback speed of sound files (mpeg). I dont care if they are external or imported since the project will only run locally. IT is a game where I want to slow down and speed up the sounds playing.

View 3 Replies

Flex :: Animation - Change Speed Of Movieclip Dynamically?

Nov 19, 2010

I have a movieclip created of a wheel that needs to roll on the ground. The speed of lateral movement of the wheel, is provided by the user and the wheel needs to rotate such that, it looks like rolling vs slipping on the ground I essentially need the wheel to rotate faster/ slower based on user input- how can this be achieved.

View 2 Replies

CS3 Sound Control - No Sound Playing?

Apr 16, 2010

I am trying to embed some sound controls, and have hit a dead end. I made my play and stop buttons, imported my mp3,, assigned it proper linkage, and inserted this AS2 :

[Code]...

The buttons are named "play_btn" and "stop_btn" respectively. When I export it or preview it, hitting the play button does not do anything.... I hear no sound. What could be up with this?

View 4 Replies







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