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


Similar Posts:


Flash :: Multiple Audio Files One Sound Object?

Nov 11, 2010

Is it possible to play multiple sound files using a single sound object? (I've looked into this back when I was using Flash CS3, but I want to know if anything has changed.)

(I'm trying to make a playlist which will play music in the background of my SWF movie and then have a frame where users can change the song and the volume.)

View 2 Replies

ActionScript 3.0 :: Play Mp3 Audio Files In Flash?

Jan 23, 2009

1. How can we import these mp3 audio files(These audio files are dynamic in nature as user can add or delete these files through login area) in flash?

View 1 Replies

Flash :: Audio - Using One Sound Channel To Play Through An Array Of Sounds

May 26, 2011

I Am wondering if is possible to use one sound channel to play through an array of sounds? Perhaps by using a complete event or other means?

View 1 Replies

Flash :: Play An FLV File In HAXE?

Nov 25, 2009

It is very difficult to find good resources for Haxe informationI have an FLV movie in the same directory as the SWF I am generating. I cannot get the FLV to play. I can get this working in AS but I need to know what I am doing wrong in my Haxe code.

var mc:MovieClip = Lib._root;
var connection:NetConnection = new NetConnection();
connection.connect(null);

[code]........

View 3 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 :: [CS3/CS4] Loading Audio From XML, Sound Won't Play

Sep 8, 2009

I've been working on a Flash/XML audio player and have been struggling with getting the audio to stream. Right now I have Flash create a list of songs based on the loaded XML file, which works, and I want to be able to click on one of the listed items for the song to start playing. When an item is clicked on, Flash will trace out a message from an onLoad command, but the audio never starts playing.

I opened a new Flash file to test the non-working segment of code and I still can't get it to co-operate.

Code:
var currentsong:Sound = new Sound();
currentsong.loadSound("http://www.vtspencer.com/recordjackets/beta/media/file_11.m4a",true);

[Code]...

All that happens is that the trace saying "Should be playing" comes through. The music still won't start.

View 1 Replies

ActionScript 3.0 :: Deleting/freeing Memory Of Sound/Audio Files?

Jul 27, 2010

I am trying to create a .dispose method for my Sound files, however it seems I am unable to deallocate/free memory for Sound files, no matter what I do!this doesnt work:

ActionScript Code:
var mySound:MySound= new MySound();
mySound = null;

and neither does this: (the 'delete' dynamic variable was suggested somewhere)

ActionScript Code:
var playerObject:Object = new Object(); 
playerObject.sound =new MySound();
playerObject.sound = null;
delete playerObject.sound;
playerObject = null;

it seems if there was a reference to the SoundFile in the code, the Memory cannot be re-allocated.however If I am loading an external file, interestingly, this does work:

ActionScript Code:
var mySound:Sound= new Sound(newURLRequest("sound.mp3"));
mySound= null;

it looks like you cannot Free memory of Sound Files that are Loaded from the Library, but you can free it if its external.

View 5 Replies

Play Audio/video Files In Flex?

Oct 18, 2010

I'm using flex 3. I've successfully played video and audio files by using following libraries:

flash.media.Video flash.media.Sound Live docs link. But the limitations are as follow: Video class can be used to play only flv file format. To play mp3 files I must use audio file.

So can I play most of the famous audio/video files by using single method?

Well by checking the file type we can some how achieve it. Then I should create a component for that.

So can any one suggest me such ready-made components? or is there any other alternatives to play audio/video files?

View 1 Replies

Professional :: Predownload(cache) Audio Files Then Play?

Jan 23, 2011

I'm going to develop an online examination system. There are many audio files in the exam and it's time dependent. I'm looking for a way to predownload(cache) audio files so students won't waiting for file loading after examination starts. I want to use a single page to download files and this step is not include in the exam time.

View 3 Replies

ActionScript 2.0 :: Pause And Play Multiple Audio Files?

Nov 5, 2010

I have a flash "hear from the experts" video in which multiple speakers discuss an issue. I have it set up so you can listen to each speaker one at a time, however, I don't know how to pause and play each speaker so if you wanted to pause it and return or pause it and start a different speaker, you could do that and then resume where you left off. It would be even cooler if I could add some sort of status bar that shows how far into the audio you are, and you could skip ahead. I uploaded the file in CS3 - I had to actually delete the MP3s that are triggered to play on each play button in order to make it small enough to upload, but if you look at the code you can see it there.

View 0 Replies

Media Server :: Select Audio Device To Play Back Sound?

Jan 8, 2007

flash media server ,provide property Microphone.names that retrieves an array of strings reflecting the names of all available sound capture devices. is there is any property that detect output device attached to system so i can select which one to play back sound. for example:- i need to play back mp3 file in flash. but i have more one output device installed in my pc. the question is:- is there is any way for falsh to list all (or detects) audio output device installed in my pc then let me pick one of them to play back sound by selected output device?

View 7 Replies

Actionscript 3 :: Compiler Errors - Flash Files Suddenly Not Compiling?

Jun 26, 2010

i have built a custom class, which i call from a frame script. the custom class takes only one parameter, which is a string URL of an XML file. SUDDENLY, when i move all the files off of my desktop into a different folder, i receive compiler errors, stating it can not find my custom class .as file, even though it's in the same folder! why is this happening? here's my entire frame script:

[Code]...

View 2 Replies

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

Linux :: Play Youtube Videos And Programmatically Direct Firefox's Audio Out To A Particular Sound Card?

Jan 20, 2012

I want to play youtube videos and programmatically direct firefox's audio out to a particular sound card.

Playing raw data 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
aplay: set_params:1059: Sample format non available
Available formats:[code]....

The command-line suggests that it worked, but audio came out of hw:0,0 (the default).Do I need to make my own plugin? Or do I need to force alsa to take 44100Hz?I refuse to use pulse since the memory leak bug makes it crash often.

View 1 Replies

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

Flash :: Audio Player That Can Play Binary Audio Streams?

Apr 13, 2011

My server is streaming binary audio data (mostly mp3 files) to a client (a browser). This client stores the audio data in memory.

What I'm looking for is a flash audio player that I can input the binary audio data so that it can play the audio file.

Preferably, the flash client is merely a bridge to Javascript so that I can handle everything in Javascript and simply use Flash's audio features, but this is not a requirement.

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

Flex :: Flexbuilder Keeps Compiling Old Files

Feb 28, 2010

I'm working on a project on Flex AS3.0 project in Flex Builder. It was working fine, I changed the name of one of my classes and all the related process. Now when I compile dubug the thing, it keeps on compiling an older version even if I comment all the code in main. It still compiles the old files. I have cleaned the project , but still the same old problem.

View 2 Replies

ActionScript 3.0 :: Compiling .AS Class Files Into FLA

Dec 24, 2010

I am requesting a standard method, in compiling .AS Class files into a central FLA. I am not seeking to upload seperate .AS class files, in efforts to have the designated SWF, call simplistic actionscript in URLs, published outside of the designated SWF, in efforts to function.

View 5 Replies

ActionScript 3.0 :: Compiling .AS Class Files Into FLA?

Dec 24, 2010

I am requesting a standard method, in compiling .AS Class files into a central FLA. I am not seeking to upload seperate .AS class files, in efforts to have the designated SWF, call simplistic actionscript in URLs, published outside of the designated SWF, in efforts to function.

View 1 Replies

CS4 Media Encoder Audio - Audio Sound Stops After A Few Seconds From The Beginning?

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

ActionScript 3 :: Flex - Compiling Files From The Command Prompt?

Dec 28, 2009

I have a file Employee.as with the following source code. I am unable to compile it from the command prompt.

package Office{
public class Employee{
private var _firstName:String = "";

[Code]....

Error: A file found in a source- path must have the same package structure '', as the definition's package, 'Office'.

how to compile multiple files in a folder from the command line. I am planning to create a package with multiple files to form a library which I can use in my flex projects.

View 2 Replies

Flex :: Build - Including Configuration Files While Compiling A Application With MXMLC

May 17, 2010

I'm using:

- Flex SDK 3.5.0
- Parsley 2.2.2.
- Flash Builder 4

Down in my src folder (which is configured as part of the source path in the Flash Builder), I have a logging.xml which I configure via Parsley:

[Code]....

View 1 Replies

ActionScript 1/2 :: Audio To Not Play When Moved To New Position For Audio Player

Aug 25, 2009

I have an audio player that has a custom timeline and playhead. I am using a start and stop drag to move in the time line but the only way i can make it work is to have it play when ever I release the play head. I would like it to stay stopped if the player is paused and play if the player was playing.
 
[Code]...

View 5 Replies

Media Server :: Send Sound With Stream (both Sound And Mic Audio)?

Oct 6, 2011

I have a broadcasting project that I've got where the host of the show can have multiple sound effects they can use on their show.I'm wondering if the only way to go about this is for all the clients listening to the show need to download the mp3 of that sound effect or if the sound effect could come from the host ...like combining his mic (for his voice) but also straight audio (the sound effect) into the stream.

View 1 Replies

Media Server :: Recording Video/audio Files Using Flash Media Server Through Rmtp, And Allow Users To Access The Recorded Files Through Http?

May 25, 2009

As titled, what is the way to record video/audio files using Flash Meida Server through rmtp, and allow users to access the recorded files through http?What I am trying to do, is to record a user's microphone's input and save it to the server.fterwards, I would like other users to be able to access the recorded files and mainuplating the audio data, by computeSpectrum(), to do some visualization of the audio. As I know computeSpectrum() cannot work on streaming files, so I think I need to access the recorded files using http instead of rmtp. Is that true?

View 1 Replies

ActionScript 2.0 :: Sound Flash - When The Audio Finishes It Goes To The Next Frame Automatically

Jan 28, 2010

I am trying to make a webinar in flash, I have frames and in those frames I need to insert audio and when the audio finishes it goes to the next frame automatically. but I also have a menu bar and when I click on a button to take me to a frame i get a whole load of audio going on. I just need it to go to that frame and play the audio Just want to be able to have it play though, when the audio finishes it goes to the next frame or if i click a button on the menu it takes me to the frame i need,

View 1 Replies







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