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




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?



FlashKit > Flash Help > Flash General Help
Posted on: 04-09-2003, 05:17 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

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?

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?

Forms: Audio, User Recorded Sound Files
I would like to create a FlashMX program which includes a form/ function that allows the user to record a sound file - a short spoken response to a question-. Is this possible? How is it done?

Loading Files From A User's Drive
I contacted Macromedia a few weeks back with a note about how I'd discoverred it is in fact possible to load an image or SWF file from a user's hard drive via a web-based SWF provided you know the path:

ActionScript Code:
/*
    Load a SWF or JPEG from the local HDD into a SWF
    Experiment by Jesse Stratford, [email]jesse@actionscript.org[/email]
*/
loadMovie("file:///C|/tmp/image.jpg","_root.image");
loadMovie("file:///C|/tmp/flash.swf","_root.swf");
The most interesting thing about this is that you can also read variables from the SWF and send them to server side scripts which can record/manipulate them.
I see applications for this for web-based games and the like. Just thought I'd let you all know in case you are interested.

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?

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

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.

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

[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

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.

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

Audio Player That Requires Access Code To Play Audio Files. Possible ?
http://www.theafternoontears.com/monitor.html

I've just uploaded this rough piece of website for an upcoming band. If you visit the URL above 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

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

Do You Know How The User The Option To Stop Background Audio?
there is background audio playing in a loop in my project. how can i give the user the option to turn it off?

Cause For Echo In Multi User Audio Chat
Hi all,

Am doing a multi user audio chat application, I would like to know what are the cause for echo in that, i have echoSuppression set to true, and also i would like to know how to use the netstream.play() method.

I have some piece of code like this,

First am playing a livestream like this,

NS.play("livestream1");

Here comes my question,

Next when i want to play a second stream "livestream2" (after closing the first stream "livestream1") can i use the NS.play("livestream2") directly or i should give a NS.stop() and then start playing the second live stream.


Please advice me on this.

Thanks,
Saddu.

Remove User List From Audio Conference Component
Hi,
I have a simpleconnect and Audioconference components and a logout button.

I'm calling the components close functions into the logout button. But when I clicked the logout button all the components close functions are executing, but the user name with which I logged in is not removing from the audioconference component.

Any idea on how to do this.......

Thanks in Advance
Anil Golla

Remove User List From Audio Conference Component
Hi,

I have a simpleconnect and Audioconference components and a logout button.

I'm calling the components close functions into the logout button. But when I clicked the logout button all the components close functions are executing, but the user name with which I logged in is not removing from the audioconference component.

Any idea on how to do this.......

Thanks in Advance
Anil Golla

Can Senior Or Experience MX User Help With This Preloader And Audio Volume Problem?
I'm try to use this preloader:

Creating an Advanced Preloader in Flash
http://www.flashkit.com/tutorials/Ac...-689/index.php


to load this volume and pan control:

Volume & Pan Slider Controls
http://www.flashkit.com/tutorials/Au...-727/index.php



the problem is that the proloaded doesn't show the get byts as it's loading. it's just wait's til the movie is loaded then shows the get bytes. Can some tell me what is the problem here and how to fix this up. I'm trying to get this up before thanksgiving. Thanks in advance guys

[MX04] Do You Know How To Give The User The Option To Stop Background Audio?
there is background audio playing in a loop in my project. how can i give the user the option to turn it off?

Flash Audio Player Script Played MP3 Sped-up For Only One User
Hello all,

My first post here; I hope this is the right forum for a general/newbie
Flash question.

I'm using a Flash audio player script that I got here:
http://www.1pixelout.net/code/audio-player-wordpress-plugin/

Here it is on the web page, a few lines down from the top of the blog post:
http://mojomom.blogspot.com/2008/06/mojo-mom-podcast-momma-zen.html

It's an MP3 of a podcast which has been working fine everywhere I've tested
it. But we just heard from someone who says that when she tried it, the
audio was sped up so that "the voices were like chipmunks".

Anyone have any idea what might have caused that?

Thanks very much in advance for any help,

--
Patty Ayers | www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate Worksheet
--

Using User Files...
Hey,

Is it possible to get something back from a FileReference.upload() request? What I'm trying to do is have a user upload an MS Excel file, have some php turn it into xml, and get the result back into flash.

I've got the Php working, but I'm struggling to figure out how to get the result back into flash.

Is there any easy way to do this that I'm not finding?

thanks

How To Trahsfer Files From Projector To User's Pc?
Hi there,

I am working on a CDRom now, it has a section is for desktop goodies so that user can download the mp3 and wall paper to their PC. I dunno how to do the "copy files to user's HDD/directory" funstion so can anybody help me on this? thanks a lot.

Kp

How To Trahsfer Files From Projector To User's Pc?
Hi there,

I am working on a CDRom now, it has a section is for desktop goodies so that user can download the mp3 and wall paper to their PC. I dunno how to do the "copy files to user's HDD/directory" funstion so can anybody help me on this? thanks a lot.

Kp

Old User Still Has Files Checked Out In Dreamweaver
I am editing a site that somebody else edited a few weeks ago, and for whatever reason a lot of the files are still listed as being checked out by that user, even though they haven't worked on the site for a while. I get warning messages when I try to overwrite them, and they still have the red checkmarks next to them.

I'm not sure if the other user was using Dreamweaver themselves, but these messages are showing up for me in Dreamweaver.

Do you know any way to tell Dreamweaver that the file is no longer checked out by this other person?

This is Dreamweaver MX 2004.

(Also, is this information stored in a text file by Dreamweaver on the server or something? Because I suppose I could just edit the text file...)

Thanks....

Scrolling Photos - Files The End User Can Change?
Thanks in advance for all the help you foks have provided me already.

I am a new Flash user and have developed several simple websites with Flash features. I enjoy the work and the extra money is nice, too.

I have included some type of scrolling photograph movie on each website I have done. All of the photo files are hardcoded into the SWF. I would like to develop a SWF in which the end user can change the photo files when they desire.

I do not have a clue how to tell Flash to look to ouside files and load them into my movie. I will be using files named photo1.jpg, photo2.jpg and so on. I assume I can load outside variables and call some type of array based on the projected file names that will load the images into the movie? If anyone can help me with the code for this I would greatly appreciate it. Thanks again.

Dave Zemens
Rochester, Michigan USA

User Login - Writing Local Files From CD-ROM.
I'm working on a program that is going on CD and the web. The client wants to be able to have users enter a name and password, have the info saved locally and save some user data locally that can be accessed later. I looking for the best way to do this.

I've looked into using Shared Objects as well as using Third Party software like SWF Studio.

Does anyone have any ideas on the best way to handle this? I do not think the Shared Object will accomplish what I need to and I really prefer not using Third Party software. There is always the idea of using Director but I really do not want to do that either. The web version should be rather simple using Flash/PHP/XML or MySQL but I'm lost for the local CD version. Ideas?

Any help is greatly appreciated.

User Uploads Files To Server ... What's The Best Script Combination?
Hey all...

You know those sites like Tripod which allow you to upload files from your hard drive to their servers... what's the best combination of scripting languages to make one? I'm guessing there are loads of possibilities each with their pros and cons, so if it helps in answering, i'd like to use Ultra Dev 4.0's database capabilities too.

If anyone knows any tutorials, links (or even some open source files...) please drop a post! thanks!

Can Flash Download Files To A Folder Of User's Choice?
I'm using Flash MX to build an on-line training course which uses .MP3 audio narration. Since some users may have slow connections to the Internet, I decided to make users take the hit up front and download the files to their hard drive to a folder of their choosing.

Since I'm familiar with InstallShield, I know I can build an installer to accomplish this, but there seems to be no easy way to tell my Flash program where the files get installed to.

Is there a way to accomplish this entirely in Flash so that my program knows where the files get downloaded to?

Thanks much.

Allowing Download Of PFD Files In Exchange For User Details
I am not sure on the right keywords to search for in the tutoral section so was wondering if someone could point me in the right direction. I want to allow users to download PDF files, but only once they have given me thier name and email address in sepearte dialogue boxes.

Many Thanks
Graham

Restrict User From Even Trying To Select Files For Upload From UNC Paths?
Since the Flash Player security sandbox won't allow files to be uploaded from a UNC path (a location other than the user's local machine such as \someServerOnNetworkfileToUpload ), is there a way to restrict that access?

Something that could be fired during the onSelect method or even something restricts the access similiar to the browse() method restricting file types.

Flash Access User-selected Local Files
Hi,
I'm trying to make design a music player which allows the user to play there own music from their hard drive. I would like them to be able to select a particular song from their collection, or a folder. Can this be done?
Would it use the fileReference class? If so, how do you do that?
Any ideas,
Thanks.

Is There A Better User Interface For Flash When Using Dozens Of External .as Files?
hello;

when using 1 or many external .as files, I have to:
- open my main .fla
- browse for every external .as file that I am going to need for the particular project, and open them one at a time;


once they are all open, I have access to them via tabs at the top of my flash timeline, which is only wide enough for about 10 tabs, and the rest of the tabs are scrolled offscreen to the right or left;


is there a better way to work with external .as files?



Director uses a 'cast' to handle all of it's scripts, so you can have hundreds if need be, and they are all opened as you open this_project.dir, and they are all easily accessible;



thanks
Shannon

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

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

thanks

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?

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

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

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!

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.

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.

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?

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

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

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

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

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

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.

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

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

Copyright © 2005-08 www.BigResource.com, All rights reserved