Malfunctioning Buttons With MP3 Audio Files
Hello all,
Brian here. I have a question for you all..
I'm working on a project where I have 5 other sections other than the "HOME" section, and the client wants a music loop for each section.
Here's what I have for code in the first frame:
ActionScript Code: sectionMusic = new Sound(); ActionScript Code: sectionMusic.loadSound("techno.mp3"); ActionScript Code: sectionMusic.start(0,999);
Now HERE'S the odd part:
The first one works fine, but the rest are either not looping properly, or not playing at all.
What I suggested to the client is that they have just ONE piece of audio at a time, and allow the user to select which loop they want, but this is how they want it.
Now, I've read here on Ultrashock, that most are importing MP3s right into the FLA? Correct? And THEN making the SWF? Are you using these for loops or background music or both? Just wondering, because if this is a better way of doing it, I may start using it in my development.
I'm currently using the "objectID.loadMovie("some.mp3");" code for bringing in MP3 audio files, and until today, everything has been working fine using the code above.
I would appreciate any help I can get on this. Please e-mail me directly at:
brian@briankjames.com
Or, post it here... but let me know you posted a reply. Thanks in advance!
Sincerely, Brian.
Ultrashock Forums > Flash > ActionScript
Posted on: 2003-07-14
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Play Audio Files With Cool Buttons
I want to create an embedded audio file as a swf file. On the page, you would see a series of stop, start, and volume buttons. I want to be able to add my own buttons that I create in Photoshop as the player buttons. I have the buttons, I have the mp3 file as well as the swf file. How do I create one of those cool players that you see on websites with audio?
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
Preloader Malfunctioning...
Hi,
I followed the tutorial at http://www.sitepoint.com/article/status-flash-preloader to create a preloader for my MX2004 flash-based website. The problem is that a blank page displays until the flash is loaded, and then for a brief instant before the site loads, the preloader displays, promptly giving way to the full flash content.
Is there a good way to display my flash code in the forum so you can see what I've done? Please help.
If you want to look at the website, it's temporarily displayed at clarkservices.tripod.com.
thanks,
Chris
Advice On Swf Btn Malfunctioning In Html Pls
Any assistance is **much** appreciated. Will even barter some design for successful advice, if necessary. I know in both flash and dreamweaver to be dangerous, so please be gentle. Thanks.
Vital Stats:
Mac - OSX. Flash MX 2002
If you'd like to follow allong:
www.miscreant-design.com
index > splash > contact page (first x in menu) > scroll btns
Website format: Created fully in flash and exported via Dreamweaver. Cannot be changed to individual html pages. (index html calls up splash html with splash swf, and splash summons individual individual swfs within same html window. all files in same folder)
Problemo:
Swf button actions do not respond in html (as demonstrated in website). Button actions (slide-scrolling action script) DO work in flash-player, and even in an html test when swf is embedded and uploaded in an independent dreamweaver file. Problem lies then (i'm guessing) in the fact that the malfunctioning btn / swf (contact pg swf) is loaded in that same html window by another swf? And if yes, any possible resolutions?
Thanks so much! -L.
Advice On Swf Btn Malfunctioning In Html Pls
Any assistance is **much** appreciated. Will even barter some design for successful advice, if necessary. I know in both flash and dreamweaver to be dangerous, so please be gentle. Thanks.
Vital Stats:
Mac - OSX. Flash MX 2002
If you'd like to follow allong:
www.miscreant-design.com
index > splash > contact page (first x in menu) > scroll btns
Website format: Created fully in flash and exported via Dreamweaver. Cannot be changed to individual html pages. (index html calls up splash html with splash swf, and splash summons individual individual swfs within same html window. all files in same folder)
Problemo:
Swf button actions do not respond in html (as demonstrated in website). Button actions (slide-scrolling action script) DO work in flash-player, and even in an html test when swf is embedded and uploaded in an independent dreamweaver file. Problem lies then (i'm guessing) in the fact that the malfunctioning btn / swf (contact pg swf) is loaded in that same html window by another swf? And if yes, any possible resolutions?
Thanks so much! -L.
Malfunctioning Text Scrollers? (one Scrolls The Other)
Basically, when two scrollers are placed on the stage, one malfunctions whilst the other works.
I also noticed that the malfunctioning scroller also scrolls the working scroller.
At this point, i've tried many things to solve the problem, for example, in one of the scrollers i changed the variable names, such as 'dragger', 'bar', 'mask_mc' and 'main', but to no avail, i keep getting the same problem, i cant see any possible way in which one scroller can refference and affect the other.
So if anyone is able to figure this out and get back to me, that would be of immense help.
thankyou in advance.
Malfunctioning Button/Movieclip When Importing SWF
I have a very large swf file that I have decided to slice up into multiple swf's in order to make it load faster.
I have designated one swf as the "main" file and it contains the header and the navigation.
When I apply actionscript to make the buttons load the seperate swf files, they come in just fine, and the moving text comes in fine. However, there is a button that triggers a movieclip inside this newly imported swf that will not trigger the movie clip.
When I test the swf outside of the import - the button works just fine. Why won't it work when I call it into my main swf?
Here is the code that I use to call it in with:
Code:
hospitality.onRelease=function(){
bannerLoader.loadClip("hospitality_banner.swf", banner_mc);
}
"hospitality" is the instance name of the button.
"hospitality banner" is the name of the swf that I am importing.
The button that should trigger the movieclip has this actionscript applied to it:
Code:
on (release) {
_root.hospitality_scroller.gotoAndPlay(2);
}
As I said, it works fine outside of the other file. And the button that activates the movieclip is the only thing not working when I import it with the loadClip function.
I hope this was enough information. I appreciate any suggestions.
Using The Keyboard To Select Code Malfunctioning In Flash, For You Too?
Hi all,
Curious if we have any seasoned keyboard lovers here that suffer this same issue, or better, have solved it! I believe the issue to be flash though, and a glitch that needs patching, as it happens on multiple systems for me.
In Windows, in every text entry known to mankind, if your cursor is at the beginning of a line and you hold shift and press the down arrow, it selects that whole line. It's a way of selecting all whitespace at the beginning and end as well as the CRLF. It's very useful in duplicating whole lines of text because it copies CRLF (carriage return line feed). Just using your mouse to select a line of text does not usually copy CRLF, and thus you can't paste it. Nor does shift-end or shift-right arrowing to select text. It's just shift + down arrow that also copies CRLF. If you dont copy CRLF, then you need to press enter after every line you paste.
So my problem? Flash does not have this behaviour (in windows F8 Pro or CS3 Pro). Flash additionally selects whitespace on the following line (next line down). So you get the whole current line, AND the spaces and tabs on the next line.
This is a glitch. No other program does this. This is completely non-standard.
Why does this matter? Because code is indented. This means every time I try to copy some lines of code to re-arrange some lines (thousands of times a month), it also selects the indentation of the code on the line below my selection. So when I cut the code (CTRL+X), it cuts the indentation of that line and I continually need to fix it. By fixing it, I mean I need to correct the extra whitespace selection before I even cut the code. I gotta hold shift and slap the left arrow key to reduce my selection of the whitespace before I cut.
This one stupid quirk of flash has been annoying me for months.. So I really need to know.. Does this happen to everyone else also? Does everyone else use the mouse to copy code? Am I alone here? Or is this just happening to me?
Quick way to test it is just to open any text editor you have. Any at all. Notepad, C# studio, wordpad, dreamweaver, who cares, a web form, yada... Anything! Hell, do it in the quick reply field on this page!! And then put your cursor at the beginning of any line, hold shift and press your down arrow. Notice it select the line, but nothing more.
Now do it in flash. Notice it wraps the selection to the next line.
Why the hell did this get past beta testing for over a year straight?
Edited: 11/29/2007 at 07:56:46 AM by ominous93
Using The Keyboard To Select Code Malfunctioning In Flash, For You Too?
Hi all,
Curious if we have any seasoned keyboard lovers here that suffer this same issue, or better, have solved it! I believe the issue to be flash though, and a glitch that needs patching, as it happens on multiple systems for me.
In Windows, in every text entry known to mankind, if your cursor is at the beginning of a line and you hold shift and press the down arrow, it selects that whole line. It's a way of selecting all whitespace at the beginning and end as well as the CRLF. It's very useful in duplicating whole lines of text because it copies CRLF (carriage return line feed). Just using your mouse to select a line of text does not usually copy CRLF, and thus you can't paste it. Nor does shift-end or shift-right arrowing to select text. It's just shift + down arrow that also copies CRLF. If you dont copy CRLF, then you need to press enter after every line you paste.
So my problem? Flash does not have this behaviour (in windows F8 Pro or CS3 Pro). Flash additionally selects whitespace on the following line (next line down). So you get the whole current line, AND the spaces and tabs on the next line.
This is a glitch. No other program does this. This is completely non-standard.
Why does this matter? Because code is indented. This means every time I try to copy some lines of code to re-arrange some lines (thousands of times a month), it also selects the indentation of the code on the line below my selection. So when I cut the code (CTRL+X), it cuts the indentation of that line and I continually need to fix it. By fixing it, I mean I need to correct the extra whitespace selection before I even cut the code. I gotta hold shift and slap the left arrow key to reduce my selection of the whitespace before I cut.
This one stupid quirk of flash has been annoying me for months.. So I really need to know.. Does this happen to everyone else also? Does everyone else use the mouse to copy code? Am I alone here? Or is this just happening to me?
Quick way to test it is just to open any text editor you have. Any at all. Notepad, C# studio, wordpad, dreamweaver, who cares, a web form, yada... Anything! Hell, do it in the quick reply field on this page!! And then put your cursor at the beginning of any line, hold shift and press your down arrow. Notice it select the line, but nothing more.
Now do it in flash. Notice it wraps the selection to the next line.
Why the hell did this get past beta testing for over a year straight?
Quick Question About Loaded Movies Malfunctioning
After completing Kirupa's "Create a Photo Gallery" tutorial by sbeener (http://www.kirupa.com/developer/mx/photogallery.htm), I exported this movie into a SWF file, and tried to load it into a holder MC in another flash movie.
However, when the parent flash movie is exported, all actions, masks, buttons in the SWF file are gone, leaving only one still image. And I did not change any of the coding from the tutorial.
I am a beginner, please feel free to help me, even if the answer is quite simple & obvious. Thank you!
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!
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?
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
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
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!
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
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
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.
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?
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?
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!!
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
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?
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!
[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.
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???
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();
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.
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.
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?
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
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
|