ActionScript 3.0 :: Play Swf Sound Files?

Nov 26, 2008

can we play audio "swf" files along with mp3 files in as3?

View 1 Replies


Similar Posts:


IDE :: Way To Play Sound Files

May 2, 2010

I'm working on a game that loops a random sound file everytime the user goes to the menu. When I tried the simulate download in the preview menu, it took a long time to load the first frame (which is a preloader). I found the problem was that in the linkage for the sound files I said "Export on first frame" so i unchecked that box, but then when I tried playing again, the sound wouldn't load.So, I'm wondering, is there a way to play sound files through ActionScript without having to load them on the first frame?

View 1 Replies

Flash 8 :: Audio - Get Haxe To Play Sound Files When Compiling?

Jan 20, 2010

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>;

[code]......

View 1 Replies

Actionscript 3 :: Can Not Embed Play MP3 Sound Files In Flash Builder 4?

Mar 23, 2011

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]....

View 3 Replies

Actionscript 3 :: Use Flash To Play A Sound Track From Different Files Seamless?

Jan 1, 2012

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?

View 1 Replies

ActionScript 2.0 :: Call Sound Files From The Library And Play Them Each Time?

Jul 21, 2006

I have a 'back,play,stop,next btn in my playa...how to call sound files from the library and play them each time I press the 'Next' btn & the previous sounds files played in order when i press the 'back' btn?

View 1 Replies

ActionScript 3.0 :: Making External Sound Files Play Instantly?

Feb 27, 2011

I could create a program for him in flash which would be able to play sounds corresponding to keys on the keyboard, but split in to 3 groups, and only 1 sound from each group can be playing at a time. I don't know that much about as3, and I told him this but said I would try anyway. The first thing I came up with was this:[code]In there, there's nothing to stop the sounds overlapping or looping like in my other solution, also it's obviously a lot less compact, but I sent it to my friend like that to see if it would at least play instantly. The response I got was that, although the lag was noticeably less, it was still present.

View 3 Replies

ActionScript 3.0 :: Create Dynamic Sound To Play Sound-file?

Oct 14, 2009

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!

View 9 Replies

ActionScript 2.0 :: Play Sound/stop Sound Button?

Feb 13, 2007

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.

View 13 Replies

Professional :: Play At Full Screen When Play .swf Files Using Web Browser

Jan 14, 2010

So i've made my .swf files. The only thing is they all play at full screen when i play them using my web browser. I need them to play at 548 x 408. when i open the .fla and go to properties it says the size IS at 548 x 410 but it can't be if its playing full screen.

View 2 Replies

IDE :: Add Sound - Sound To Play On The 'Over' State

Mar 6, 2009

I'm trying to add sound to some buttons. It's just a little metallic 'klink' sound that plays on rollover. I only want the sound to play on the 'Over' state. So I've set up a layer (just for sound) for the button and I add my sound in the 2nd frame (the Over state). Everything is cool. All is good. And the sound plays on rollover. But the sound also plays when I click the button (i.e. it also plays on the "Down" state). Why? The Down state keyframe is completely empty. What's going on here? I've only put the sound in the "Over" keyframe, why does it also play in the "Down" frame (or when I click)?

View 1 Replies

ActionScript 2.0 :: Play Sound Like "stop All Sound" Option In Flash?

May 17, 2003

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.

View 6 Replies

ActionScript 3.0 :: Play A Sound File And Show The Progress Of The Sound File Being Played

Mar 16, 2009

I have to play a sound file and show the progress of the sound file being played. I am using import flash.media.Sound; import flash.media.SoundChannel; But the PROGRESS event gives theprogress of loading of file. I want to know of much of the song has been played and how much more is left.

View 3 Replies

ActionScript 2.0 :: Swapping - Play The Client Side Mp3 First Then Only Play Server Side Sound Object Alternately

Aug 9, 2004

I am new to actionscript. I have created a script that will play server side sound object and client side mp3 files alternately. Now, I would like to play the client side mp3 first then only play server side sound object alternately. However, I have no idea how can I do so. The following is the code that need to be swapped:

[Code].....

View 2 Replies

Sound Files Not Workin In .swf File

May 6, 2009

If I use Publish Setting and choose a different folder for the .swf and .html file that Flash CS3 will be generating then the audio/sound will not work when open the .html file in a browser. However, if I choose to the "Publish" option or "Publish Setting" but choose the same folder for the .html and .swf folder then the sound will work when opening the .html file inside a browser.[code]

View 3 Replies

Professional :: Can't Import Sound Files?

Jan 6, 2011

No matter the format no matter what the bit rate is, I can't import ANY audio files into flash CS4 without getting the error "One or more files were not imported because there were problems reading them"

This happens both when I import to the stage and import to the library. Please if you know anything about this issue please help otherwise the whole flash program is useless for me.
 
Also I found online that installing quicktime fixes the issue. It didn't work for me, I've reinstalled quicktime 3 times to make sure.

View 9 Replies

Professional :: Sound Files Not Importing?

Dec 2, 2011

I have a problem while trying to import any sound file into flash CS5.5. I have not successfully done it since purchasing the program. I have tried opening the file in a sound editor and saving it, as well as trying to convert to a different sound type that is still Flash compatible. I'm trying with .mp3 and .wav files mostly. The error messages i receive are "Couldn't import C://*file location* or else i get"One or more files were not imported because there were problems reading them." I havent figured out a pattern as to why either might be showing or the connection to the file.

View 1 Replies

Flash 10 :: Exporting Sound Files From Fla?

Jun 7, 2011

I had imported some sound files into an fla (CS5) and then i accidentally deleted the files.So those sounds are present as symbols in the fla. How do i export/extract those files from the symbols?

View 2 Replies

ActionScript 3.0 :: Swapping The Sound Files?

Sep 17, 2010

I am working on a Flash / AS3 project which has several audio tracks and starts off with an intro track. When the user clicks a button a window opens and the audio track changes, the new audio track continuously loops until the user closes the window. When the window is closed the audio track switches to a default audio track which is similar to the intro track. The problem I am having is that when the user clicks on the button and the window opens, the audio track plays as expected, but when it reaches the end, it doesn't loop, instead the intro track starts to play instead (and loop I assume).

Here is the code I am working with:

Code:
package {
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.MouseEvent;
import flash.media.Sound;

[code]....

I included trace statements to track what the value of "music" is doing. It appears that when the function repeat() occurs, "music" always seems to default to the intro music "audio/track-intro.mp3".

View 1 Replies

ActionScript 2.0 :: [MX] - Controlling Sound Of FLV Files

Nov 21, 2002

I've am trying to create a sound control to control the sound of an imported FLV file. The problem is like this. I recorded a video using a video camera and than using the iMovie, I've converted the movie to QuickTime format. Than I use Sorenson Squeeze for Flash MX to compress the video. I manage to compress the files into FLV format and than imported it to my Flash file. Now I want to add a sound control to the movie to control the volume.

View 2 Replies

ActionScript 3.0 :: Get A Handle On Embedded Sound Files?

May 7, 2009

From the Sound Class information, it says to use the SoundMixer Class to handle embedded Sound Files.  I have two sound files embedded, that I have setup in 2 separate layers, starting at frame one in the main timeline.  I needed to do this so I could see the wave files, and coordinate text with the waves.  I do not want to load these files into the .swf file at runtime using URLRequest.  How do I get a handle on those as they exist, to make each controllable by separate volume and mute controls for each sound?
 
This will be a challenging question, because, "it can't be done" doesn't work for me.  I managed to create a way to use an external classfile to control the main timeline, the ROOT timeline, without having to create a sub movie to root.  I can use my component to call play(); as though it were in code in a frame.  But it isn't, it's in an external classfile.  I passed root to the classfile and told the classfile to think of it as a movieclip - that put the handle on it.  I tried similar way with root as a Sound, but that isn't detailed enough - I need to get a handle on the frame that contains the embedded sound file.  I embedded, attached it, using the properties view for the frame.
 
I've attached, or whatever you want to call it, these sound files to a frame, and this frame is or should be attached to the layer I've created.  So, under the assumption that the ROOT has everything attached to it in some manner (it is after all the foundation for the COM), the stage of the root contains the visual components, so ROOT has to have the layer objects attached to it, which should have the frame objects attached to the layers.  I have two layers that each have a .wav file attached to frame one.  Somehow Flash keeps track of that - I want to know how Flash does it so I can read what flash reads.

View 1 Replies

Imported Swf Files Have Lost Their Streaming Sound?

Jun 14, 2009

I am trying to import a swf I made that contains streaming sound. When I place it on the time line and press cntr enter my animation plays but with no audio. I see the symbols from the swf and the swf inside my library. When I open the swf file inside my project it is broken down frame by frame with no audio. I can add audio back into my movie clip so I know that movie clips can support streaming audio. But I would rather not have to do this.

I'm very new to flash so I am hoping there is something big that I am missing.In addition to my previous question: I need to embed a lot of objects over and over in this project I am working on. Each object will have controls for play back of itself. Is there some reason I cannot do this?

View 6 Replies

ActionScript 3.0 :: Loading Multiple Sound Files?

Jul 28, 2009

I am trying to put a few songs on a website, not as an .mp3 player, I just want to be able to assign individual buttons to control them.ow, and it works great. I would like to now how to add more and assign them to their own buttons seperate from the other songs.This is the code I have for one song

var url:String = "";var urlRequest:URLRequest = new URLRequest(url);var sound:Sound = new Sound();sound.load(urlRequest);var sc:SoundChannelvar startTime:uint=0;
playBtn.addEventListener(MouseEvent.CLICK,playF);stopBtn.addEventListener(MouseEvent.CLICK,s

[code]......

View 5 Replies

Sound Files Made .fla File HUGE?

Sep 28, 2009

I imported 26 .mp3 files into my library, and linked their classes via AS3 to 26 instances of buttons.
My file size went from about 2MB before  I imported them to about 1.6 GB after I imported them. Each of the files is only about 2-3 MB.

View 2 Replies

ActionScript 3.0 :: Getting Script To Edit Sound Files?

Feb 7, 2011

A wav or mp3 file will be taped or various. Is there any script to edit these files in batch ie: to Trim the beginnings ie: no sound parts. Or would I have to use a sound editor. As I say I don't want to do it manually. This sounds like a stupid use but it's important as I have children taping themselves and can't use a 3 party product to edit. Perhaps AIR has something in an API.

View 7 Replies

Professional :: Accessing External Sound And Pic Files?

Feb 26, 2011

Is there any simple way you can access a very short sound file in flash without having to play it in an flv player.  its just a ding sound to play when the user hits a button in the presentation.Also is it possible to access an external pic file and then convert it in to a symbol to be used within my presentation.I just don't want to store these files to keep my main swf small.

View 3 Replies

ActionScript 3.0 :: UI Loaders And Flv Files - Sound Remains

Feb 24, 2011

I loaded a flv into a uiloader. I have 4 buttons which load different projects in. A quiz, an animation and a video. Works great apart from when you click the buttons either the flv sound remains or if you click the flv button I have multiple instances of the audio. The main file AS3 is

[Code].....

View 0 Replies

ActionScript 2.0 :: Multiple Sound Files Combined?

Jan 15, 2007

The quick question is I can only get this to play sound once - then it won't do it again I am making a math game for my young kids - it adds numbers from 1 to 5 the variables A & B are randomly generated and make C

The sound reads out a string A + plus + B + equals + C (5 sound files)It does this the first time the flash is played, however, when the flash movie goes back to the previous frame, and generates new variables - it will not play the sound files anymore.

[Code]...

View 1 Replies

ActionScript 2.0 :: Activating Sound Files Incorrectly

May 8, 2002

I did this e-card, and it seemed fine. Then I played it on another persons computer (both PC), and the sound failed to work. I'm using Flash 5. Other e-cards with sound produced by other people worked fine. So here's my code. On the first frame (root) I have:

[Code]...

View 4 Replies

Flash :: IDE - Multiple Sound Files In Timeline

Jun 24, 2009

I'm having a little issue with the sound on my flash website. The way my site is set up so far is that after the preloader, i have an enter site page that holds there until the user clicks on the "enter site" button. Once they click that button it takes them to the site. I would like to add 2 different sound files to this. One file for the enter site that loops over and over until the user enters the site and then that sound file will stop and the other sound file will start.

When I tried this I could not get the first sound file to quit playing once you enter the site. So basically when I am on the "enter page" it's playing the looping file fine but when I click "enter site" it plays the other audio file on top of the one looping. I hope this makes sense.

View 1 Replies







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