Usually this should result in the Sound calling the handle... function when it wants to play so that I can insert my own generated ByteArray for the sound. But it doesn't even call that function and sometimes (!!!) crashes instead with an: Error #2004: One of the parameters is invalid.
I have an embedded flash object with a movie parameter that uses a url as a parameter. When this URL is resolved on the client the full friendly url is used and the link to the .swf is then incorrect.Here is the HTML:
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.
It's possible to play a sound file through AS, either by loading it from a folder or import it to flash. It's also possible to play a dynamic tone with flash.media.Sound + writeFloat.
But... is it possible to play a sound file with flash.media.Sound + writeFloat in some way? I want to play a sound file without having to deal with any files except the .swf!
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.
are there any possibilities to play sound in flash (actionscript 2), which is defined by a mathematical function like f(t) = 0.5*sin(2*Math.pi*16/27*440*t) ?
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?
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?
Years ago, when I was designing a game site, it was recommended to me to do what you pretty much suggested in your answer to a question about Flash sound: put my sound effects as Flash elements. This works great on every platform except the iPad.
In Flash 10/AS3, I added some sound and it seems to be working alright, but I think I'm doing it wrong. I imported the sound into the library, but I believe that it's reloading it from the folder with the swf/sound. I'm loading them like so:
I'm using a flvplayback component in flash cs4. The sound from the mp4 video plays fine, but the video doesn't play. I don't know how to check the specific encoding of the mp4. I'm publishing to flash player 10 at 24fps.
I built a Flash site that is being used as a teaching tool. The client would now like to add voiceovers to sections. Is there a way to play a sound once on a movie clip, and if the viewer comes back to that clip then the sound won't play again?
I'll explain my scenario. I want to play a small sound at certain situation, so I would prefer initiating the play via jQuery. Also, I wish to make a toggle button for the sound. So, the user could turn ON/OFF the sound. So, I'm thinking about creating the toggle button and function for playing the sound inside the Flash. But I don't how to call this function (that I have written in Actionscript, which will start playing the sound) via jQuery ! Do you have some ideas ? I haven't done creating the Flash document, but bookmarked some tutorials and will start playing with it soon. :) The reason for choosing Flash is that it would be crossbrowser compatible.
I have a flv video file that I imported it on the stage and it plays on timeline. I have written a code that on mouse movement on the stage, the video plays from start to end ( mouse movement from left side of the stage to the right side )
Code: stop(); stage.addEventListener(MouseEvent.MOUSE_MOVE,stageMovement); function stageMovement(evt:MouseEvent)
[code]....
The problem is the sound doesn't play in this way. What should i do ?
I am trying to develop my first flash app. The application emulates a "karaoke" service. It plays a background sound and at the same time records the sound coming from the mic. I use the "sound" class to play the sound (s.play() ) and the "netStream" class to record the mic sound (ns.publish("mysound", "record") ). In the same app, I then try to play these two sounds together. The problem is that I cannot synchronize them. My tests drove me to a conclusion which I am not certain for. The conclusion is that the method s.play() has a delay about 500ms until the sound starts playing. The result is that recording starts 500ms earlier than playback. When, then, I playback both of them the recording sound is 500ms after the backround sound. Is that delay for sure true?
I'm using flash CS4. I am trying to make a piano. It will be the header of a web page when the mouse rolls over a key the appropriate note plays- ideally the key would appear to be pressed as well. I have a jpg of a piano keyboard imported as a graphic. On a new layer I have made a button whos over state has a blank keyframe. I have imported that button to the stage and given the instance a name. I have attached a sound to the over keyframe (middle C).
I have dropped a second instance of the button onto the stage and given it a unique name. When I attach the next sound (D pitch) to the over state it changes the original middle C. How can I get each instance of a button to play a unique sound? I have tried using a new layer for each button but that didnt work. Do I have to make a brand new button for each note? I have reduced my design to include only 16 notes (I originally wanted 32 but I thought that may take too long to download)---
I'm having some trouble getting Haxe to play audio files in Flash 8.At the top of my hx file, I have:import flash.MovieClip;import flash.Sound;and, within the class itself, I preload a lot of image files along with the names of the audio files.The idea is to do a slideshow with audio content. Basically, display the first slide and play the audio associated with it.Then, once that audio is finished, move on to the next slide and next audio file. I have the slides fading in and out okay but when I tried to add sound, nothing comes out the speakers.The following code is what I'm doing - the sound file associated with audios[0] never starts playing and I'm at a loss as to why.
class Whatever { static var master : MovieClip; static var slides : Array<MovieClip>;
I've googled and googled but got no where or outdated tutorials. Anyone know how to make it so I can toggle audio with buttons using ActionScript 3 on Flash?
I am currently making a Flash Builder Project using Actionscript 3. I have come unstuck trying to embed and play MP3 sounds.I know that the MP3 file is loading as i have traces the bytes loaded, i have also traced the function which plays the MP3.
import flash.media.Sound; public class Sounds {[code]....
I have 15 sounds in my fla; I imported them to the library and exported all sounds with the name s1, s2, s3, ... s15 I created a function that recieve the number and then play the sound. In AS2 I could use eval like eval("s" + n), but in AS3 I can't!
I have some audio files on my http server, and I would like to write a Flash client in ActionScript3 to load those audio file and play them smoothly. Of course I can just create a Sound object and load it by .load() with a URL request. But for saving the bandwidth, I prefer to load audio file chunks on demand. For example, there is an audio file let's say 100MB. If we try to load as fast as possible when user open the page
<--------- 100MB ----------->
The downloading may finished within minutes, but let's say, if user stop listener in halfway, that's kind of waste to load whole soundtrack at first.
<--------- 100MB -----------> ^--- user may stop here
To solve the problem, I think it's better to split the big audio file into small chunks, load and play them on demands.
<--- 10MB ---><--- 10MB ---><--- 10MB ---> ... ^--- user current position
I want to design the player, let it load audio chunk by chunk, and only load it when it's near the end of current chunk.
How to load those chunks and play them smoothly? I can probably create Sound object for each chunks. But how to play them seamless?
I have an application using the new sound capabilities in Flash Player 10 and I want to play a sound dynamically at a rate of 8KHz.
To play sound dynamically you need to listen for the sampleData event and then feed the sound object raw sound data. Unfortunately, the sampleData event appears to only be triggered to enable playback of sound sampled at 44.1KHz.
The microphone can be configured to sample raw data at 8KHz so why can we not configure the speaker to playback raw data at 8KHz. Is there something I'm missing? If not, is this feature in the roadmap?
I have some sound on a button and want it to be about half as loud as it actually is, do I need to edit it in a SoundEdit program? Or can I just make it play half as loud from within Flash?
I have added some three sound clips, play pause buttons, on the root timeline in a movie with corresponding callouts. I am able to stop all sounds on the main timeline by below
stop_btn.addEventListener(MouseEvent.CLICK, stopSound); function stopSound(event:MouseEvent) { SoundMixer.stopAll(); }
But now how do I resume all the sound to play. In sort, mute unmute root sounds in AS3.
I am trying to use a sound controller in a flash movie to play music and I am using loadMovieNum to load the sound controller movie at a particular point in the main timeline. I get the sound player to load up fine and the sound loads fine when a user presses play, but about a minute through the song the sound starts to play again, overlapping the song that is already playing.
This happens with no user interaction...it just takes about a minute. I also noticed that it is only when the sound player is within one of the movies. It doesnt happen when the sound player is all by itself. Is there something in my movie that is making it loop over?