Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Loading Audio Files


Is there any way to allow a user to load their own audio files into a flash movie so that they can be played back?




FlashKit > Flash Help > Flash MX
Posted on: 04-09-2003, 05:11 PM


View Complete Forum Thread with Replies

Sponsored Links:

Loading Real Audio Files
Sorry I'm having so much trouble with this project but now I need help with another problem. When I try to load .ram files from a framed site using the getURL function and targeting either (none, _self, or _blank) - I get a blank page on the site-

It worked fine on my server for the client's viewing but I was not using a framed site-the client does-

can anybody help me with this conundrum-

You can see the page at http://www.ralphpeterson.info
-part of the jazzcorner collective

when you click the recordings button and try to listen to a sound clip,...you'll see what I mean.

Thanx in advance if I get some help.
CobyCo

View Replies !    View Related
Loading Audio Files Cleanly
I have several audio links I want users to be able to hear. What would my button actions be to make the sound file open without opening a blank window. I just want the user's media player to start playing the file on mouse release. Thanks if anybody can help.

View Replies !    View Related
User Loading Audio Files
Is there any way to allow the user to load their own audio file into the flash movie to be played back?

View Replies !    View Related
User Loading Audio Files
Is there any way to allow the user to load their own audio files into the flash movie to be played back?

View Replies !    View Related
User Loading Audio Files
Is there any way to allow the user to load their own audio files into the flash movie to be played back?

View Replies !    View Related
Problem With Dynamically Loading Audio Files
Ok so I have an swf the plays audio clips if I import them into the fla itself. However when I try to load them through a loader with several different external swfs or try to load them using:

ActionScript Code:
myMusic.loadSound("sample.mp3", true);
or:

ActionScript Code:
myMusic.loadSound("Track6.mp3", isStreaming);

They will not play. As in nothing happens.

When they are seperate swf files they play in that file just not in the main movie.

Anyone have any suggestions? Thanks!

MM

View Replies !    View Related
[audio] Loading Multiple Sound Files
Hi everyone,
Im having a problem loading in several audio clips using the sound() command. I searched through the boards and there was a lot of posts with no replies, or answers that werent really solutions. Im hoping for a bit of luck with this one.

Problem:
I have a base.swf file that loads an ambient bg track into my scene as well as a function to play voice over tracks when called.


Code:
//voice over audio
function audio(vo) {
myAudio.stop();
myAudio = new Sound();
myAudio.attachSound(vo);
myAudio.setVolume(20);
myAudio.start();
}

//bg audio
bg="BG_Music";
bgMusic = new Sound();
bgMusic.attachSound(bg);
bgMusic.setVolume(100);
bgMusic.start();
I have my timeline load different swf files at various times using the loadMovie() command.

Code:
loadMovie("video_01.swf", _root.video);
Each loaded swf file calls the audio() function and tells it what voiceover to play

Code:
_root.audio("voice_01");
This all works fine and dandy until the second swf file is called, then for some reason it cuts out the ambient bg track.

Any ideas? If you want to take a look at the project you can download it here:
http://vertx.ca/download/Flash/presentation.rar

Any help would be greatly appreciated.

Cheers

Mike

View Replies !    View Related
Loading Multiple Audio Files Into A Single Frame
What I'm trying to do is just have a song loop continuously in a stopped frame (which is easy enough), but the song I want to use has 12 seconds of intro before the loop begins. The only way I can think of to do this is to split the intro and loop into two different files, then have it load the intro, play it once, then once the intro finishes load the loop file and play it. Unless there's some way I can have the file loop but specify that it should start over at 00:12 each time instead of 00:00. Is there any way I can do this without just having 12 seconds of frames playing the intro and then a stopped frame with the loop?

By the way, I'm using AS2 for this project.

View Replies !    View Related
Audio Player That Requires Access Codes To Play Audio Files. Possible ?
LINK

I've just uploaded this rough piece of website for an upcoming band. If you click LINK you will see two flash movies. The one on the bottom is the audio player. What they want instead of JUST an audio player, is a player that plays certain "secret" audio files if you enter the correct 6 digit number. So imagine a text field and a submit button next to the < || > controls. I'm still getting to know Flash and I have no idea how to create something like this. Anyone have any advice? Any tutorials out there? Info? and finally...this IS possible right?

Thanks

View Replies !    View Related
Audio Player/playing Audio Files Externally (mp3)
I've designed the audio player with all of the necessary buttons. I'm trying to play the mp3 files in an consecutive order. I am having trouble stopping or pausing, rewinding and fast-forwarding the mp3 file. I also have a next button and a back button and I don't know how to get them to work either. I have a slider, but can't get it to work either. Please help! I tried to follow the tutorial on flash kit, but wasn't quite understanding it. I would greatly appreciate this if someone could lend their knowledge and support.

Thanks in advance!
PR Gip

View Replies !    View Related
Audio Files
Hi I'm pretty new to Flash and I am having trouble with my audio files. I imported a sound file from a shared library but i cannot control it from my main movie. I know that I am sharing it properly because I can drop it in the timeline and it will play. The problem is that I do not want it in the timeline and i only want it to be played when the user pushes the play button. I tried using the same code to play the movie that I would if the file was in the original movie and not the shared one but that didn't work. If anyone can help me with this that would be great.

P.S I am using flash 5

View Replies !    View Related
Audio Files
Does anyone know where I can find good (cheap) software to
convert aif audio files to mp3 ?

thanks

View Replies !    View Related
Several Audio Files
How can I get a play button to play an audio clip from the library and then get it to stop playing? Then I need to have another play button point to another audio clip.

Do I need to have all the audio clips in the timeline?

View Replies !    View Related
Mp3 > .swf Audio Files?
alright, so i have downloaded this simple flash file here: http://www.flashkit.com/movies/Sound...8056/index.php i tried to edit it to make it play my songs, but it keeps giving me an error. anyone know why? and one more question, how to i convert it from .mp3 > .swf to play the files? thanks

View Replies !    View Related
Real Audio Files
Howdy, this is my first post!!

I'm building a website for a local Producer that I know and he wants to put real audio files on the flash site for people to listen to. I'm using shockwave at the mo if thats any help.

Not sure what would be the best way to do this, sorry about the vague question, please help.

Echo_rev

View Replies !    View Related
Preloading Audio Files
I have a Flash movie with 7 Audio files I'd like to have preload before the movie starts playing. I know how to preload frames, but how do I preload Audio files that are in my Flash Library???

Please advise!

View Replies !    View Related
Streaming Non-mp3 Audio Files?
My current web host does not allow mp3 files and I would prefer to keep all my files in one place, rather than storing mp3s on an external file hosting service.

What other formats can be streamed in Flash? I was pretty sure .swf and .flv sound files would work, but they aren't - unless I'm doing something wrong.

Here's the basic code I'm using:


Code:
private var _song:Sound;
private var _songFile:String;
then in an event handler:


Code:
_songFile = _songNameField.text;
_song = new Sound();
var soundFile:URLRequest = new URLRequest(_songFile);
_song.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_song.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler);
_song.load(soundFile);
I don't see a message from either of my error handlers, just no sound. The sog.swf file itself works.

View Replies !    View Related
Streaming Non-mp3 Audio Files?
My current web host does not allow mp3 files and I would prefer to keep all my files in one place, rather than storing mp3s on an external file hosting service.

What other formats can be streamed in Flash? I was pretty sure .swf and .flv sound files would work, but they aren't - unless I'm doing something wrong.

Here's the basic code I'm using:


Code:
private var _song:Sound;
private var _songFile:String;
then in an event handler:


Code:
_songFile = _songNameField.text;
_song = new Sound();
var soundFile:URLRequest = new URLRequest(_songFile);
_song.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_song.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler);
_song.load(soundFile);
I don't see a message from either of my error handlers, just no sound. The sog.swf file itself works.

View Replies !    View Related
Audio Files In Flash
I have several wav. files that I have imported into my flash project, which has left me with a huge file when compiled. I have cool edit pro and I ahve converted a few files to mp3 format but when i try to import them into my flash project it says that it can not read the files. Are there certain options I need to change when converting my wav to mp3 files so flash can read them?

View Replies !    View Related
Playing Audio Files
Hi there

I have been out of the flash loop for a while any who...

I am looking to create a flash file that plays external audio files I want to put this on my web site so the user can sample the product before purchase or download. The audio file format shouldn't matter.

So since I have lost most of my scripting skillez "was pretty decent at flash 5" I need to be pushed in the right direction.

Any advice on books sites tutorials etc.

Thanks

View Replies !    View Related
Playing Audio Files
Can someone help me with this please? I need to create a couple of buttons in flash. I already created them. But I need to be able to play a wav file (audio file) when the button is clicked on. Also if I click on another button, the playing file should stop playing and the other audio should play. Can someone please help me with this ? Appreciate it! Thanks!!!!

View Replies !    View Related
About Playing Audio Files...help Plz
Can someone help me with this please? I need to create a couple of buttons in flash. I already created them. But I need to be able to play a wav file (audio file) when the button is clicked on. Also if I click on another button, the playing file should stop playing and the other audio should play. Can someone please help me with this ? Appreciate it! Thanks!!!!

View Replies !    View Related
How To Use Cuepoint In Audio Files
Into a file .fla I have a file audio with cuepoints. I need to read these cuepoints in flash (I use the MX 2004 version) to manage some little animations into the stage.
It is possible to make this?
I have found solutions only for the .flv file but not for wav or mp3 or others audio file... Why?

Help me please

View Replies !    View Related
Using An Audio Files Data
If i load an external mp3 file from either the internet or a user's computer, can i use the file's details (artist, album, etc).

I don't know how to explain it, i think you can set the file's details in windows media player or winamp, and it gets stored with the file.

Thanks,
Brendan Smith

View Replies !    View Related
Streaming Non-mp3 Audio Files?
My current web host does not allow mp3 files and I would prefer to keep all my files in one place, rather than storing mp3s on an external file hosting service.

What other formats can be streamed in Flash? I was pretty sure .swf and .flv sound files would work, but they aren't - unless I'm doing something wrong.

Here's the basic code I'm using:


Code:
private var _song:Sound;
private var _songFile:String;
then in an event handler:


Code:
_songFile = _songNameField.text;
_song = new Sound();
var soundFile:URLRequest = new URLRequest(_songFile);
_song.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_song.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler);
_song.load(soundFile);
I don't see a message from either of my error handlers, just no sound. The sog.swf file itself works.

View Replies !    View Related
Playing Multiple Audio Files?
Hey Guys...

Ok, got a question for you. Firstly take at look at this project I'm working on:

http://www.stecol.pwp.blueyonder.co....a_keyboard.swf

Ok, a flash keyboard, you get the idea. Seems to work fine, until you play more than 8 keys (Notes) in continuation. After the 8th note is played the sound dies and no more notes can be played. If the keybaord is played slowly this does not happed, but such is the nature of a musical keyboard, the notes need to be palyed quickly to form a melody. Does anyone have any ideas, is their a piece of script I can attach to each key to prevent this. Please...any help is much appreciated!

Kindest Regards
Vector
safoster@wpclc.org.uk

View Replies !    View Related
Is It Possible To Play Local Audio Files?
is it possible to choose sound files from the harddisk?

eg: to offer a sound player on my internet-site which implements local sound files?

thanx a lot, guys

View Replies !    View Related
Preloading Audio Files With Flash MX
I'm using Flash MX. I'm trying to preload audio files in my Flash Library. I'd like the files to preload before the movie starts playing. Anyone know a simple way to go about this?

Thanks!

View Replies !    View Related
What Is The Best Way To Link MP3 Or Real Audio Files
Dear Masters:

I am creating a web site for a small Record Label company and would like to add links to 10 CD as follows:

download MP3
listen RealAudio Player

What is the best way to create the sound loops and add these links to each CD so it will download the files correctly or direct the link to the RealOne player so people can listen to the sound loop.

Similar setup like Flashkit.com when you click on the mp3 link to download the music or you can just click the arrow to listen to the sound.

Do the sounds have to be created to be compatible with Flash MX or Flash 5.0? After the sound loops are professionally created what javascript or HTML is used to direct them to open the files so they will be downloadable or redirected to the RealOne Player?

Your time and effort is greatly appreciated.
Bill

View Replies !    View Related
Conversion Of Audio Files To Flash
Is there an application or utility to convert a WAV file to SWF format? I have looked at the SWFTools, but I don't have a C compiler since these are open source. I downloaded Sun Java's JMF2.1 JMStudio, but it doesn't have an option for SWF format that I could find.

Thanks,
Shawn Wilson

View Replies !    View Related
Cd Rom Mit Audio Files And Flash Projector
hi i would like to know if it's possible to put in the same cd , a flash movie (a presentation for a musician) and also audio in the same cd, and it can both run on a computer (pc and mac) for the flash thing and the music , and on a normal music equipment for hearing just the audio files.

how do you make this?
how do you save these files all together? in sessions?

** Thanks!!

View Replies !    View Related
Playing Audio And Movie Files On A Cd
Hi guys.

Not really sure which area to post this in since i dont know what area it is. So mods please move me if theres a right area.

Ok i need to make a cd that can play audio when inserted in a hi-fi etc and when played in a computer play a movie (song video). You get this on singles and stuff like that.

What is the best way (and simple) way of doing this?

Thanks for your help

All the best

View Replies !    View Related
Audio Sync/AVI Files? AARGH
I am having an audio sync problem with a presentation we are doing. We are using Flash MX 2004 Pro on a Mac G4 dual 1ghz running OS X 10.2.8 with 1g of ram.

Essentially, the sound is fine until about halfway through, where the audio begins to creep ahead of the video. By the time the audio ends, the video is way behind. This happens in exported swf's and in exported projector files. However, when we TEST each scene individually, the sound matches up perfectly with the video.


The nitty-gritty of the file is as such:

18 scenes. The video was ORIGINALLY all AVI exported from uLead software on the PC. We then exported that from Flash separating the video into swf files and the audio into avi files.

The first 1-8 scenes each have a video (SWF) layer, and a separate audio (AVI) layer. These were set to Stream in the sync setting.

The next 2 scenes (9-10) have NO video. There is only the audio AVI track over some vector tweens. again set to Stream.

Scene 11 is just like the first 8, separate video and audio layers, set to Stream.

Scene 12 has no video, only audio over some vector tweens. set to Stream.

Scene 13 is different, it has one swf file which contains the audio and video, and is set to Stream.

Scene 14 has no video, only audio over some vector tweens. set to Stream.

Scene 15 has one swf file which contains the audio and video, and is set to Stream.

Scene 16 has no video, only audio over some vector tweens. set to Stream.

Scene 17-18 each has one swf file which contains the audio and video, and is set to Stream.


There must be some combination of what we are doing that is causing this. Does anyone have any ideas?

View Replies !    View Related
No Audio Playing From Flash Files
ok i have a small problem, i cannot hear no audio from flash files, i can hear music from winamp, quicktime etc and soo forth, but i cannot hear no audio from flash files? have i turned something off ?? can i do any checks ?

someone help please!

View Replies !    View Related
[F8] Audio Files Not Included In GetBytesTotal?
I have a movieclip containing two songs at approximately 3000kb each.
I also have a dynamic text field on the main stage monitoring the amount of bytes (should read approximately 6000000 bytes) however it's only reading 67 bytes. (the ammount of space the frames are taking up without taking into consideration the file size of the music being called to play in those frames)

does anyone know how to get the sound to be included? it's absolutely critical in making a preloaded for the audiofiles. without the correct ammount of bytes to load it'd be near impossible to make the loaded function correctly.

View Replies !    View Related
Dynamically Preloading Audio Files ?
Hi all

My question is:
Is there a way to dynamically preload mp3 files with action script.

The situation:
I ‘m trying to create a “Joke” game. The user hears the first part of a joke. And then has to answer a question to hear the second half of the joke. The problem is there are 300 jokes, for a grand total of 600 mp3 files (one audio file for the first part of the joke and a second audio file for the second half of the joke). I know how to “hard code” audio files with actionscript so they will be “pre-loaded” (the jokes are selected randomly so I thought the best way would be to preloaded the audio files so there is not a pause).
I don’t want to hard code 600 sound objects. Is there a dynamic way to “pre-load” the audio files. I’ve been trying and have had no luck.

Any suggestions???

View Replies !    View Related
Working With Multiple Audio Files
I have a background loop (audio file) that I would like to remain threwout my whole presentation. Here is where my problem is, I have another audio file that I would like to load and fade down the volume of the background loop, right before it plays at full volume.

Currently I can not even get my audio files to play at spearate volumes. Here is my code

Frame 1:

myLoop = new Sound(myLoopMc);
myLoop.attachSound("myLoop01");
myLoopVolume= 10;
myLoop.setVolume(myLoopVolume);


myAudio = new Sound(myAudioMc);
myAudio.attachSound("myAudioSlide003_1");
myAudioVolume=100;
myAudio.setVolume(myAudioVolume);

myLoop.start();

Frame 20:
myAudio.start();

View Replies !    View Related
Problems With Multiple Audio Files (mp3)
Ive been doing a project which includes a small jukebox with a list of songs that the user can click and they will load and play.

The problem I have encountered is that only 1 mp3 will play and the others simply dont do anything.

The code I have is:
//This code is in the timeline in frame 1
var Audio1 = new Sound();
Audio1.attachSound("The_Prayer");

//This code is in a button later on
on(release)
{
_root.Audio1.start(0, 1);
}

I am using the same code for the other audio files (with the exception of using different names such as Audio2).

Thanks for any help.

View Replies !    View Related
Reading Audio Files Off Server
I have just finished my website and its came up to 4mb in filesize because of the MP3s involved. Now of course id need it to be small because you cant wait for websites to load, its not cool.

So, what i need, is a way that when a buttons clicked it plays a song off the server that the server the site is hosted on. I have heard that the command is "getFile" or something like that. I also need it that it streams it, rather than opening the audio in a player or a new window or anything.

Any help is greatly appreciated.

View Replies !    View Related
Any Easy Way To Loop Audio Files?
Ok. so is there anyway to loop audio files using like an array or something else. I have 5 audio files, and what I want to happen is that when the .swf opens up it plays the first audio file, then goes to the next and so forth, in an endless cycle... is that possible?

View Replies !    View Related
How To Play Mp3 Audio Files In Flash?
Hello Everyone!

I m a fresher and in learning phase of ActionScript. I was wondering if anyone can help me out regarding a Flash Movie.

The link is http://www.purevolume.com/bravecitizens
(There is a Flash Audio Player towards right to the picture). My query is

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?

2. How to play these files?

Your quick help would be highly appreciated. Thanks much

View Replies !    View Related
How Do I Play/stop Audio Files?
Hi,

In my main scene I have three buttons, each of which reprresents a different song. When the user clicks on "song 1", song one plays. But if you then click on "song 2", song 1 and 2 are playing at the same time. I need to make whatever sound file that's playing stop before the next choice loads.

Oh, and I can't figure out how. That's why i'm here...

cheers,
jen

View Replies !    View Related
Streaming Large Audio Files
Hi y'all.

I am having issues streaming large audio files (a 100mb dj mix mp3) through flash. Does anybody know why this could be? Are there limitation to file sizes that flash can handle or....?

Any help is be greatly appreciate.

jtk

View Replies !    View Related
Record Audio Files From Flash
hi

Is there any chance to record voice from flash using microphone in run time and save this in a specified folder ?

Or i have to use any other tools with flash to get this ?

Plz help me

Thanks in advance

View Replies !    View Related
Simple Way To Import Audio Files?
Ok so this is a fairly simple question. I like the flash wizard that is built into Flash 8 that allows you to easily import videos, choose the player skin, and then the system does the rest, you wait a while and poof you have a video! Is there an easy way to do this in Flash 8 with audio files so say I want to take a .wmv or .mp3, import it and then choose an audio player skin and what not and let Flash do the rest?

Basically I'm semi-new to Flash 8 and I'm trying to find a simple way to import audio and have an audio player skin for it and everything without having to create a new skin for each audio file I import from scratch!

View Replies !    View Related
Can't Hear Audio On Flash Files
First sorry if this is the wrong place.

When viewing flash files over the internet I can not hear any audio. This comes as a result of a registry tweak gone wrong. I have tried to remove all instances of flash and shockwave from my system, and then reinstall them, but this does not correct the problem. I can however download flash files and play them using VLC Media player and have sound.

Please help me as I really want audio back for my flash files so for example, i can access youtube and actually HEAR the audio and not just see the video. Thanks!

View Replies !    View Related
Compare Two Audio Wave Files
Could some one help me on how to compare two wave file for similarities also can i provide a facility to record a audio at run time and compare with the one that i already have.

View Replies !    View Related
Any FLV Files With Nellymoser Audio Are Required
Hi,

I'm writing a converter of FLV with Nellymoser audio into MP3 format.
I've tested it with NM audio of 8 kHz, but I need yet to test it with
audio of higher sampling rates (like 11 kHz, 22 kHz and 44 kHz).

Could anybody help me with a small sample of FLV file, encoded with
Nellymoser audio with a sampling rate higher than 8 kHz?

Thanks in advance.

View Replies !    View Related
Audio Files - Simple Question
I need to put an audio file inside a Flash movie, what is the best file format to use?

View Replies !    View Related
Audio And Video Sync (different Files)
Hi.
I'm wondering if anyone have any experience about sync video and audio together?

What I want to do is stream an flv video (flash 6) and at the same time stream an audio file and sync this together. There are people talking in the movie and I want it to be perfect.

Thanks for your help and time.

View Replies !    View Related
Audio Files - Simple Question
I need to put an audio file inside a Flash movie, what is the best file format to use?

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved