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








External Music Files


I currently use:

Code:
mySound = new Sound();
mySound.loadSound("music.mp3",true);
1.) How do I set the number of loops?
2.) What is the Actionscript code to unload the sound?




KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 07-28-2004, 03:16 AM


View Complete Forum Thread with Replies

Sponsored Links:

External Music Files
What's the actionscript syntax for:
1.) Start playing an external music file.
2.) Stop playing an external music file.

View Replies !    View Related
External Music Files
I currently use:

Code:
mySound = new Sound();
mySound.loadSound("music.mp3",true);
1.) How do I set the number of loops?
2.) What is the Actionscript code to unload the sound?

View Replies !    View Related
Loading Music Files From External Source
I know how to load text files from an external source, but i need to know if you can load music files, mp3's, from an external source and how i would go about doing that, if any one could help me that would be great thanks,
Dan

View Replies !    View Related
Adding Midi Files Or Small Music Files To Swf's?
Hey just wondering if it is possible to add midi files or small music files like them into flash? Just wondering because my music files are taking like 2/3s of the swf space.

View Replies !    View Related
Adding Midi Files Or Small Music Files To Swf's?
Hey just wondering if it is possible to add midi files or small music files like them into flash? Just wondering because my music files are taking like 2/3s of the swf space.

View Replies !    View Related
Music Files
Could someone recommend where I can find a music file with like a classical or gospel beat at?

View Replies !    View Related
How To Use .swf Music Files
Hi guys
how can i use a .swf sound file in a flash movie?
when i try to import the file i lose the sound...and if i try to load it with an action "load movie" on the main timeline the sound doesn't start...can anyone help me with this please?
thank you

View Replies !    View Related
Music Files
how do you make/save one of these files...
its an .swf that is only music, i cant open it up but im building a jukebox that id like to play these .swf's instead of mp3's

View Replies !    View Related
Music Files
Hi guys,

I am interested in being able to embed audio files in a web page, and there seems to be very little about it on the net (or I don't know what I'm looking for more likely!), but it seems to me that swf files may be the way to go.

I will not be playing movies at all - it is just music I want to play, but I don't want the user to be able to download the file.

Is Flash the way to go?

View Replies !    View Related
.mod -- Module Music Files
Hi,

Can anyone tell me if it's possible to play .mod type Module files from within Flash. Without converting to wav/mp3.

Thankyou

View Replies !    View Related
Insert Music Files
I am trying to insert sound in flash but because I have two scenes the music get mix up. Need help!!!

View Replies !    View Related
Loading Music Files
Hey guys i'm looking for help on loading music files form a ulr onto the swf. also the ability to stop that file from playing and play another form a bottom. i hope this is not asking to much... can anyone help?
thanx

View Replies !    View Related
Saving Get/url Music Files?
Thanks ahead of time for any help anyone can be.

I have a music/design Flash website where the user can click on a song title of a CD and hear the downloaded(GET/URL self) mp3.

The problem is how to save the file to the desktop of the user for future listening or burning or whatever.

Is this possible?


Go to:
www.bluewoods.com

click on MUSIC
click on CD's
click on CD Titile
click on Song Title to play mp3

View Replies !    View Related
Music With Flash Files
I need some tips on decreasing the size of sound files I attach to my Flash movies.

I have a small snipit beat of a song that is 3MB..

The snipit of the song is 10 seconds but for some reason when I save it it saves as a 4MB wav file...

ANy way to make it a reasonable size to attach to the flash file?

WHat programs would you recommend for this and if possible some URLs where I can download samples.

Thanks!

View Replies !    View Related
Help With Music Files For A Rush Job
Hello everyone:

Here's the deal. I have a site for a singer and I need to include some mp3 files. The discography section contains several buttons to specific contents of each disc. Once hit, I want to have a button that plays the mp3 file for each chosen song on each disc, but here's the problem... It makes the swf file too big and the loading time eternal for 56k users!!!!! And back here 56k is still been used by too many people!

How can I make the mp3 files begin to load while the visitors check the contents of the page, so when they realize there's an audio button, it already uploaded at least half the mp3?

If anyone needs any other info, please POST!!!!!!

Here's the address of the site: www.lourdestoledo.com. It's in spanish but it's easy to navigate!

View Replies !    View Related
Slowing Down Music Files
is it possible to play a music file with reduced key and tempo percentages thru actionscript?

View Replies !    View Related
Loading Music Files Or Pictures
i'm making a personal sites and it will have my art work and music/songs in the links. how can i have the art work and the music/songs to NOT load until the person clicks on a button?

thanks

View Replies !    View Related
Preloader For Multiple Swf Music Files
ok i guess i didn't eplain well enough the first time, here it goes again, bear with me i typed it for an email so excuse the "you's"

i am very stumped with a problem i have and i was hoping you could help. My dilema is that i am making a music player with around 51 songs, but the songs are about 2to 5 mb each so i wanted to add a preloader for them, the first part of this prroblem is that i am using a swiftmp3 equalizer so i am pretty sure that you have to use a loader.loadmovie function to make the equalizer work, correct me if i am wrong, secondly i am trying to make a preloader for multiple .swf's so that all can use the same one, as you can see it would get very time and space consuming with 51 songs but it is hard to interpret all this coding as i am a complete noob when it comes to action scripting. I don't even know what a MyCache is. I have a preloader made but i can't seem to get it to work for what i am trying to do. Here is what i want to happen:
Click on a number >
Display Loading Bar for external swf >
Once loaded display song info and have working equalizer

So basically i want a version of your external preloader that works for 51 songs that also work for the SwiftMP3 equalizer bars. Since i am such an idiot when it comes to hand coding i was hoping you could help me out alot,

View Replies !    View Related
Downloadable Music Files On A Site
I want to include some short, edited examples of music for a musician’s site I am building. What is the best sound format to offer for people to download?
Thanks

View Replies !    View Related
Music Files Not Loading/playing
I'm making an mp3 player that uses xml to load in the the names of all the bands /ablums/songs into flash. it works perfectly fine on my own computer. and when i load it to the server (which is on my computer), and use a web browser to go straight to the swf file it works fine... but i tried putting a link to it on another website... my myspace page.. and now the xml loads in all the data, but it wont play the songs, it just keeps saying in the status bar of the browser that it is watiting for my server... can anyone please help me?

Kyle

View Replies !    View Related
Creating An Array Of Music Files Help Please.
I am new to actionscript 3.0 and not to sure about the way i would go around this, any information you can give will be greatly appreciated.

I am trying to create an array of short music files. i would then like to create a random number and then play the sound which is in the position of the random number.

At the moment i am trying to just get the sound files to play before i try using the random number. The code is shown below, i know it is not right and that there must be more to add but i am unsure as to what that is so any help is greatly appreciated. the code i have is as follows:


ActionScript Code:
var array:Array = new Array("notes/A1.wav","notes/A#1.wav");
array[0].play();

thankyou for any help you can provide
Darren Rutter.

View Replies !    View Related
M4a Music Files Playable In Flash
Are m4a music files playable in Flash? Or do they have to converted to mp3? (if so, is there software availabe to do this?)

G

View Replies !    View Related
Music Files In Flash MX 2004
I know flash can support mp3 and wav files, but is there a way to import .mid or .wma files?

View Replies !    View Related
Music Files In Flash MX 2004
I know flash can support mp3 and wav files, but is there a way to import .mid or .wma files?

View Replies !    View Related
Multiple Music Files & Buttons (w/ Cookies?)
Hello,

I am a noob when dealing with flash and I dont quite know how to solve my problem. I dont really know which forum this question would best fit into, so I'll just post it in the noob forum.

I have music playing on my website, but I need to do a few things with it and I dont know how to do them all.

1) I want 3 buttons at the top of the screen: Song1, Song2, and Stop.

2) I want Song1 to immediately play when the user enters the website.

3) I want Song2 to begin preloading when the user enters the website.

4) Whichever song is playing, its respective button should be "down"... IE. If Song2 is playing the Song2 button should look different thatn the others so that the user knows what song is being played.

5) Perhaps the most difficult part of this question... (please help me with 1-4 first before trying to explain this one because otherwise I wont follow) I need this button to use cookies that remember which setting the user last selected, because of the way my website is setup if they turn the sound off, whenever they refresh or visit another page, the sound will begin playing again.


I know this can be done with embedding the sound within the .swf and also with loading external files.... Im pretty indefferent as to which method is used, but I think external files would probably be better.

Ive looked around forever for tutorials about this, but all I can find is "how to make a button" and "how to turn on/off music".... I cant find anything that tells how to do it with multiple music files and how to make the button stay different when that particular song is playing...

So if you guys know any tutorials or would even like to explain something yourself, it would be much appreciated...

Thanks,
Greken

View Replies !    View Related
Multiple Music Files & Buttons (w/ Cookies?)
Hello,

Im sorta a noob when dealing with flash and I dont quite know how to solve my problem.

I have music playing on my website, but I need to do a few things with it and I dont know how to do them all.

1) I want 3 buttons at the top of the screen: Song1, Song2, and Stop.

2) I want Song1 to immediately play when the user enters the website.

3) I want Song2 to begin preloading when the user enters the website.

4) Whichever song is playing, its respective button should be "down"... IE. If Song2 is playing the Song2 button should look different thatn the others so that the user knows what song is being played.

5) Perhaps the most difficult part of this question... (please help me with 1-4 first before trying to explain this one because otherwise I wont follow) I need this button to use cookies that remember which setting the user last selected, because of the way my website is setup if they turn the sound off, whenever they refresh or visit another page, the sound will begin playing again.


I know this can be done with embedding the sound within the .swf and also with loading external files.... Im pretty indefferent as to which method is used, but I think external files would probably be better.

Ive looked around forever for tutorials about this, but all I can find is "how to make a button" and "how to turn on/off music".... I cant find anything that tells how to do it with multiple music files and how to make the button stay different when that particular song is playing...

So if you guys know any tutorials or would even like to explain something yourself, it would be much appreciated...

Thanks,
Greken

View Replies !    View Related
Play Same Music File Having Various Html Or Swf Files
I do have various html and swf files to play my cdbook and I want a track that plays ever and ever from begining to end with no stop when click a link to the next swf or htlm file, how can I do that?

......thanks

View Replies !    View Related
Loading Screen For Multiple Music Files
I'm creating a game that has lots of differant background music for differant types of level.

However on the begining pre-loader I want to have seperate loading bar for the sounds. (bar 1 is move preloader and bar 2 is the sounds preloader).

I had the idea of adding all the getBytesTotal() from the music files at the start and have a variable that constantly upadtes with all the getBytesLoaded() added together, then I add the usual divide total by loaded and times my 100 then round.
That code is as follows:

Code:
onClipEvent(load) {
totalBytes = 0;
loadedBytes = 0;
loadedPercentage = 0;
for(var i = 0; i < 5; i ++) {
_root["bgSound"+i] = new Sound();
_root["bgSound"+i].loadSound("mp3/music"+i+".mp3");
totalBytes += _root["bgSound"+i].getBytesTotal();
}
}
onClipEvent(enterFrame) {
loadedBytes = 0;
for(var n = 0; n < 5; n ++) {
loadedBytes += _root["bgSound"+n].getBytesLoaded();
}
loadedPercentage = (loadedBytes/totalBytes)*100;
loadedPercentage = Math.round(loadedPercentage);
_root.displayText = "Loaded Music: "+loadedPercentage+"%";
}
But what I really want to find out is how can I say also how many files have completely loaded out of hte total eg:

Code:
displayText = "Loaded Music Files: "+filesLoaded+"/"+filesTotal;
displayText += "
Loaded Mus... etc
Is it possible using the code that I have, to actually say how many files have loaded as well as the overall percentage??

thanks anyone that can help

View Replies !    View Related
PRE-LOADER For Intro, Mp3 Audio, Swf Music Files
hi everyone,

Im working on using pre-loaders for an intro which i need to burn onto a CD, as there it quite alot of media going onto it.

So can someone please advise and help me on the following:

1. Intro - I movie clips on the timeline which need a pre-laoder, when burned onto CD the song which is on the timeline.

2. Mp3 Audio jukebox - i have used actionscript within an array to load the songs files within the same folder when burned onto CD it takes a long time to buffer..

3. I have movie swfs which are externally loaded into the main .fla however when run from .exe its clear that due to the size of the .swfs, the time it takes to buffer is quite substantial. I looks really bad as the user must wait a considerable time.

Its not possible for me to upload my files as they are very big, however i would really appreciate it if someone could give me some advice as to the Asctionscript that needs to be used to get all of th eaobve loaded at a quick rate.

thank you

Zip

View Replies !    View Related
Targeting External Files To Text Files In Flash
Gooday all

I am developing a flash site for a movie company and it needs to be 100% dynamic! and must be flash 5 compatible

To put things as simply as I can here goes.

I have a directors page - on this page I have two text fields.
The first text field pulls all the directors names from an external file called directors.html, In this external file I have html hyperlinks which link to each directors bio text (in another external text file), what I want to do is basically target the second text field in flash. i.e. when you are in flash and click one of the directors names his info must appear in the adjacent text field.

you follow?

THIS DOESNT LOOK LIKE A COW!

View Replies !    View Related
Loading External Text Files With Links To .swf Files
i am loading a external text file with html links. I would like to know if anyone out there know how to make those links load .swf files, that would work with the levels hierarchy of the original level0 file. I tried passing a variable that would be detected by a movie clip on EnterFrame but no success, maybe I had written something wrong. Loading just the swf file will replace the html page on the browser.

View Replies !    View Related
Protect Music Files Used By Flash Jukebox Prog.
Hi,
I have a little jukebox movie in Flash that simply plays up to five tracks on my site. I do not want the files to be easily downloadable by anyone who figures out my file structure, but I don't know how to make the files accessible to Flash but inaccessible to a browser.

Is there a way (using Actionscript or otherwise) to limit access to certain files on a webserver so that only Flash can use them?

Thanks.

View Replies !    View Related
Protect Music Files Used By Flash Jukebox Prog.
Hi,
I have a little jukebox movie in Flash that simply plays up to five tracks on my site. I do not want the files to be easily downloadable by anyone who figures out my file structure, but I don't know how to make the files accessible to Flash but inaccessible to a browser.

Is there a way to limit access to certain files on a webserver so that only Flash can use them?

Thanks.

View Replies !    View Related
Multiple External Text .txt Files In Different Swf Files
I'm trying to have several external files (txt or html) attached to a several swf flash files, loading in different levels of one main movie, for easy updating.

Example is: loadVariablesNum("ext-track.txt", 0);
This I can do, partly working.

Say you click the button for "about" that loads that flash file (in a layer), it fails to load in the relevant external file (the movie loads just not the external text file).

When you open up the "about.swf" on its own, it loads up the external file no problem. It just fails to do it when I am loading it from the main swf movie file that then loads this in a layer.

I can get all the text files working by putting in all the loadVariable parts in the main movie but I need them put into their relevant swf movies.

Does that make sense?

How do you correct, something to do with layers or targetting? I'm sure it'll be easy for you guys, Actionscript ain't my thing.

Thanks.

View Replies !    View Related
FLASH - Flv Files & Importing External Files
Note: this is trying to be done all in Flash... please be patient as I have to explain it...

Here's the scenario... I am currently building a website for a coffee company, and as an introduction to their website, they want to play a short clip of 16 seconds, size 350x250 - fine... The real problem is that I have been asked to make it appear as if it was actual footage on TV - in effect, at super high quality with NO (and I mean, NO) Pixelation... very stringent, but they think I can somehow push the boundaries and work something out!! Also they wish for it to play as soon as the website begins (no chance of preloading!!) - without an option for the user to control the film (as in no play/stop/rew buttons, etc.)

In order to create this, I had to use Final Cut Pro - as this was the only program that passed the 'test' for what was asked... the client has a major issue with the 'fade' to black sections of the film - believing them to look as if they are shimmering (this also being the initial problem with building it directly in Flash). I passed this through all types of compression to achieve the smallest possible file (12MG) - and then from Quick Time Pro - I came up with an immaculate looking, but incredibly large flv file - using the export feature. Total... 82MB, yes MB...

Please note, I am fully aware of compression, but have to iterate this incredible request!!

Rather than attach it to the timeline in Flash, I placed the created FLV file in the same folder and requested on the first line of the timeline - through Actionscript - that it plays the FLV 'progressively'. To my understanding, this file should play whilst not having to load up before hand... (learnt of this from Macromedia website.)
I have seen this method used in a few tutorials, but admittedly the file sizes are approximately 5MB...

After uploading the file (took over an hour), I tested the film and it began to play extremely slow and choppy. After 16 seconds (the expected duration of the clip) the next scene in the timeline began !! The film had actually only progressed about 3 seconds into itself....

I don't think I am necessarily doing much wrong as it is the best solution that I could come up with in terms of keeping the final 'SWF' file to a minimum size so a user will not have to wait it to load up (got Flash files to 24MB - but still too long to load up!!!)

Can anyone think of an alternative method to playing an 82 MB file, or is this just plain ridiculous??

I am at a loss because I am still curious to see if this is actually feasible... if so then maybe you will help me push the boundaries of Internet viewing!!!

ALL comments/suggested will be highly appreciated and definitely considered

Okolom

View Replies !    View Related
[F8] External Text Files Wont Load Into External Swf File...
Hi,

I'm making a Flash website in Flash 8 (mac).

Structure: There is 1 main file that loads external SWF files depending on what is clicked on.

One of the external SWF files loads its text from external text files. This works fine when viewing the SWF applet on its own. But when viewing as a whole site, the text doesnt appear. Very annoying.

I made that particular SWF on my mums computer running Flash MX 2004. The flash file itself uses the Scrollbar component from MX.

Could someone tell me why the text doesnt load in this scenario? It runs fine on its own, just not as an external SWF.

I've attached the files in question. Its a 200kb ZIP download. Do tell me if you need to know more.

Thanks

View Replies !    View Related
External Music
how can i load in different music files (external swf files)into flash.. and control them in my flash site ???

View Replies !    View Related
External Music
whats the code to load in an external music file to stream

its like new sound("dfafdaf.mp3"); or something

View Replies !    View Related
Loading External Music
how do you load external music.. i know the loadMovieNum ("something.mp3", 0); ... i know that much but how do you get it to play.. if this is hard to do just reply with hard to do thanks...but if it is sorta easy the by all means tell me =)

View Replies !    View Related
Buffering External Music
does anyone have any information or code
that buffers streaming audio from an external .swf?

View Replies !    View Related
Buffering External Music
does anyone have any information or code
that buffers streaming audio from an external .swf?

View Replies !    View Related
Buffering An External SWF With Music
Can anyone point me in the direction of a way to buffer the audio in an external SWF so it streams instead of completely downloading to the browser before it starts playing? I have a preloader in the files, but the music won't start until it's completely downloaded, which makes the preloader (or buffer) useless.

View Replies !    View Related
Playing External Music
im making a little flash movie that visitors can use to navigate around my website, and i want some music in the background to go with it. everything works fine with the music, except the fact that the file size is over 4000KB. if i take out the music it goes down to a mere 12KB.

is there any way of making flash play a external music file (ie on a webserver)so that the file size is still low?

View Replies !    View Related
Best Way To Load An External Swf For Music?
Hey guys, looking for a good way to load an external swf for an MP3 player on my Church's website.

Anyone have any ideas? I don't want to have to load it at the beginning, so that's why I'm using an external swf.

Thanks

View Replies !    View Related
Controlling Music In External Swf's
I have been searching the web up and down for two days straight without any results.

I've built a music player which can be seen here: http://www.pixelfrogmusic.com/

The player calls music from external swf's. Each track is stored in a separate swf (Event). As you notice, the pause button stops the music (StopAllSounds) instead of pausing it, and the play button doesn't work. I have not even been able to get to the forward and rewind buttons yet.

What I'm trying to do is to pause and play the music (for a start). I have been able to do this with streaming sounds, but not with Event sounds. Due to the lack of quality I cannot steam the music. I need CD quality music.

Is there a way to start and pause an event sound in an external swf with buttons that are placed in the main movie?

I have found several tuts with similar issues, but none of them covers external swf event sounds.

Any help is greatly appreciated.

View Replies !    View Related
Loading External Music
Well I am trying to Load a external music SWF file and the file loads great but the music doesn't play. I am using this code
--------------------
on (release) {
_root.contents.loadMovie("data.swf");
}
--------------------

So now I dont know what to do. If you guys have any suggestions on what is the best way to load music the FASTES way to do if possible (Fastes I mean is the Loading time) If you guys know a better way please show me Thank you very much

View Replies !    View Related
Load External Music File
HI guys,

I've been working on this for a couple of hoours now,
but still i don't get it...

the problem:
When I load my site everything works, the preloader, de popup screens from the buttons.

But when i put a loadmovie(music.swf....(etc)) in the main movie with a target, it somehow loads but doesn't play the sound.

Does anyone recognize this or now how to fix this...

You can have a look at the site at http://www.geocities.com/vitas9000/
(sorrt for the stupid geocities part, well gotta test it somewhere.

for teh guys who want to help me i have placed a download on the site where you can download de fla from the musicfile and you can test it.

P.S. when you come back again, then it works.

Many Thanx Frank

View Replies !    View Related
Problem Loading External Swf With Music In It
Hi,

If anyone can help me with this, that would be great.

I've got a main swf and another swf that holds a music loop (music.swf). In the main swf, when it has completely loaded, the first frame of the 1st scene after the preloader has the following code:

loadMovieNum ("music.swf", 1);

Then the rest of the scene's animations run until told to stop.

Currently, when I load up the main swf, the music.swf doesn't load up, even after leaving it for a long time (over 1 minute) - I'm running it off cable connection too. However, once I hit the refresh button, the music plays. The size of the music.swf is only 49K.

the music.swf has it's own preloader in it too so that viewers know that something is loading, but it ain't happening. Please help as I'm puzzled.

Thanks,

Chris.

View Replies !    View Related
Load External Sound/music
I would like to be able to load an external music file when a button is clicked for example i want this to play http://music.celestialrain.com/remenissions.mp3

View Replies !    View Related
Control Music Fade Out On External Swf
Im designing a website that has the option for 3 music loops as background music. On the site, I have 3 buttons (1, 2 and 3) which each load a swf with an mp3 on the first frame as streaming and with fade in (from the sound properties). A fourth button simply unloads the external swf.
Till now everything works fine, the problem is that my client wants the music to fade out when unloaded or when another one is loaded.

Is there a way I can control with a button on the main swf, that the music on the external swf will fade out and then unload?

thanks! I hope someone can help...

View Replies !    View Related
Loading External Music Into Flash...
Hi,

I know it is possible to load external .SWFs and images into a flash movie, yet is it possible to do the same for audio and music?

If so, can you please post the script / link to help me get this to work...

thanks in advance.
Chill93101

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