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




Problem Loading External Mp3s On Web ( Works On My Desktop, But Not On Web)



I'm using the student version of Flash mx that I bought earlier this year.

I've created a button that loads an external mp3 file. It works on my
computer with no problem, but when I put the mp3test2.swf file and the
test.mp3 in the same directory on my web site, it doesn't work. Here is my
code:

//(relative path)
var bOn1 = true;
button_btn.onRelease = function(){

if(bOn1){
var s1 = new Sound();
s1.loadSound("test.mp3");
s1.start(0,99);
}else{
s1.stop();
}
bOn1 = !bOn1;
}

// (absolute path)

var bOn1 = true;
button_btn.onRelease = function(){

if(bOn1){
var s1 = new Sound();
s1.loadSound("http://www.healingwords.org/test/test.mp3");
s1.start(0,99);
}else{
s1.stop();
}
bOn1 = !bOn1;
}

Has anyone else run into this problem? Any solutions?

Thanks in advance,
Don Drake



FlashKit > Flash Help > Flash ActionScript
Posted on: 11-11-2003, 11:42 AM


View Complete Forum Thread with Replies

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

Loading External Mp3s
Hello... I am still somewhat of a Flash Novice, but I have already built a site. On my site, I would like to be able to have separate play/stop buttons so a visitor could choose which song they would like to play. I would like the mp3s to be loaded only when they click the buttons though, in order to keep the site size as it is. (Eventually, I would like to do the same with jpgs, and I assume it will be a similar process.) Anyway, I'm not sure how to go about loading the mp3s with such a button (presumably a movie type button), and I don't know if I have to have them as their own swf files or what. Any help would be appreciated. Thank you.

Loading External Mp3s (mx)
I'm loading mp3s and I would like to know how to create a preloader _mc for it. I'm loading them using .loadSound script set to false. Any tips would be much helpful.

Loading/Playing External .mp3s
Hoping you guys can help. I finished my site, but I actually have my music samples loaded into the movie itself, so of course it's takes a minute to download the site. I think I've tried every tut you could think of and nothing works. I have to admit that they are sometimes a bit overwhelming with the AS. Is it easier to make the samples .swf files and load them that way or leave them as .mp3s and play them externally. Thanks in advance.

Swf Works On Desktop But Not When On The Server
www.arcsquared.com/Test/z2.html

Theres the link to the site I'm currently working on. When I devised this site on my cpu there were no issues, it ran perfectly, the exteral .swf files with the loadmovie command worked like a charm.

However, once it was placed on the server the movie gets to the last frame where a stop(); command does exist, but it automatically loops back to the start and replays.

However once one runs the link a few time it eventually ends up working (to some extent). Revisit the site a few times and let it run 7-10 times not a big file so it won't take long. Then the Home page and menu bar will show.

However, then when one clicks a link to a new page it fails again and reloads the main movie instead of the movie for the empty container. But once again if one visits the .swf file specifically (http://www.arcsquared.com/Test/Contacts.swf or
http://www.arcsquared.com/Test/fullspectrum.swf or
http://www.arcsquared.com/Test/About.swf and/or
http://www.arcsquared.com/Test/Services.swf)

and then reload the main page as stated at the top of this post it seems to work. I can't understand why this is... But any help would be greatly appreciated. My guess is that the server is running the main .swf but when it looks for the .swf of the container for some odd reason it can't read that name.

Swf Works When Tested From Flash But Not When Opened On Desktop
i have this flash file that when i test the movie on flash it works... but when i try to open it from my desktop it doesnt work...
any ideas why?

Flash Mailer Works On Desktop Not In Browser
I have a mailer that sends a data to a mail recepiant. When I test it on the desktop it works and displays the infor like it should below:

Name:
Last Name:
Adress:
Zipcode:
City:
Tel:
Fax:
E-mail:

Puppet_Description:


Puppets:




Mailtype:

When I drag it into a browser I get this result:

Name: Last Name: Adress: Zipcode: City: Tel: Fax: E-mail: Puppet_Description:Puppets:Mailtype:

Can anyone steer me in the right direction?

Jay

Loading External Jpgs Works Fine In IE But No Other Browser
I've written a code which first loads an image into a mc (place), goes through a preloader which uses getBytesLoaded to advance past the preloader, and then uses the following code to decide whether it should be portrait or landscape. It then uses onEnterFrame to fade in. The onEnterFrame seems to hang up midway to being opaque for no apparent reason in Firefox. (Everything works fine in IE). The problem seems to be in the loading in Firefox. Also, there is a timer function which causes all the pictures to load - once they are all cached, it seems to work fine. Anybody have any ideas? Thanks in advance. Here's the link:
http://wolfsmithmedia.com/zirbel/test/ramsdell.html

if (place._width > place._height) {
//landscape
newOrientation = "landscape";
landscape._visible = true;
portrait._visible = false;
place._x = 0;
place._y = 66;
} else {
//portrait
newOrientation = "portrait";
landscape._visible = false;
portrait._visible = true;
place._x = 72;
place._y = 14;
}

//function fades in photo
place.onEnterFrame = function() {
place._alpha = place._alpha + 10;
}

Loading External HTML Into Flash - Works Great...
hi,

I am loading external HTML files into a flash movie and formatting them with CSS ... all of this is working great except for one thing.

I am loading the content via buttons, so when a user scrolls down to the bottom of one section, and clicks a button to see another topic, the content changes, but it is scrolled down to a point comparable to where the user was on the previous section. i.e. it doesn't bring the user to the top of the "page" when it loads a new one in.

Does anyone have any idea of how I can reset this, so no matter when you click a section, the content will reset to the top of the page.

The site is not quite done yet but you can see what I'm talking about at http://www.brianwellbrock.com/Wellbrock_content.html ... specifically the "Speaking & Seminars" section ...

Any help is most appreciated.

Curtis

Loading External Text-file, Works, But Still Get An Error Message, Why?
so, i made a layer called text, with a dynamic textfield and called the instance "newsText". and then wrote the following ascript on a new layer;
--------------------------------------------------
myText = new LoadVars();
myText.onLoad = function();

MyText {
newsText.text = this.myVariable;
}

myText.load("newstext.txt");
--------------------------------------------------
i manage to load the text, but i got the following mesage, and i donīt understand why it complains about "Ext_text" and "test.txt" since I changed it to "myText" and "newstext.txt"

**Error** Symbol=newstext bar 1, layer=newsbar, frame=1:Line 1: Statement must appear within on/onClipEvent handler
Ext_text = new LoadVars();

**Error** Symbol=newstext bar 1, layer=newsbar, frame=1:Line 2: Statement must appear within on/onClipEvent handler
Ext_text.onLoad = addText;

**Error** Symbol=newstext bar 1, layer=newsbar, frame=1:Line 3: Statement must appear within on/onClipEvent handler
Ext_text.load("test.txt");

**Error** Symbol=newstext bar 1, layer=newsbar, frame=1:Line 4: Statement must appear within on/onClipEvent handler
function addText() {

Loading External Text File Returns Error: #2032 ..but On One Server It Works.
Hello, it has been a while before i did something with actionscript again, but
does anyone know if there has been some changes about loading external text files in Flash?

I tried loading an external text file from a online webserver that worked fine. But now i wanted
to move the text file to a different webserver and i got this error:

Error opening URL 'http://wwww.uniqwebdesign.com/mailform_test/dataformcs.txt'
httpStatusHandler: [HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=401]

and:
status: 401
ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL:

External MP3s
I have a button created where I would like the user to click to open an MP3 file. But the file is large enough where I don't want to embed it into the swf file. I would like a Quicktime or Real player to open to play this file externally. I've tried a few things and not much seems to work.

Can this be done? Can anyone help me?
Thanks

Linking External Mp3s
i'm building a psuedo-jukebox. i ideally want to dyamically import mp3s into my flash movie using the loadMovie function, having the title being pulled from a .txt file. however, i'm using mysound.attachSound("idName")to control all my audio. since the sounds will not originate in the fla's library, i cannot set them for export in its symbol linkage properties.

is this possible to link and control the sounds once they're imported into the swf? rephrased: how do i give an imported mp3 an "idName?"

i can build invid swfs that contain the linked mp3s, but this is removing one level of dynamic control, so is a less desired solution.

thanks

JWT

Problem: External Mp3s In W2k
Hi,

I am creating CD-ROM based training program that has a lot of narration. I am loading external mp3s. For the most part its working great. However, on W2k about halfway through the program (intermitently and never in the same spot), the audio starts to break up and eventually stops. If I quit and start again the audio is working again.

When I used to have this kind of problem in Director I would unload memory and that would fix the problem. This is acting the same way but I don't know of a way to unload memory in FlashMX. Maybe this has nothing to do with memory...

Any Suggestions?


PS - I posted this to the Sound and Music Forum as well... sorry if that's bad etiquette, but I'm a bit desperate!

External MP3s Revisited
I've been able to have my button load an external MP3...thanks for your help!
Now my dilemma is how do I close it or make it stop??
Idealy I would like to button to both open and close it.

Preloading External Mp3s
Hi,

I new to flash so you'll have to excuse my newbiness lol, but I have a couple of questions about audio.

I am trying to create a new flash site based on what we already have at Clan Sixth Sense, and so I am attempting to try and reproduce the streaming of the mp3 files, and was hoping that one of you guys could give me a quick tutorial, nothing fancy...

I will most likely just need it to randomly play mp3 files I ask it to, and have a mute sound button, obviously to stop the sound, that would be the only visual thing.

So if possible could some kind hearted soul figure out the actionscript so I can learn from it? All the other tutorials etc that I have found are way too complicated, and I'm just learning.

I can create buttons etc, I just haven't a clue what to set in ActionScript to accomplish something like this...I hope that you can help me :)

Also, I don't know how easy/hard this is (optional to me), but I was hoping I could have those bars that move with the music, you know like the bars visualisation on Windows Media player, the bars pop up and down in synch with the music.

I would appreciate any help with this!

Thanks for reading :)

EDIT: I would like the music to stream, so its like the site loads, and the music loads in the background, I think that its some sort of preloading external mp3 files or something?

Thanks

Embedded Vs External Mp3s
Hello people,

I've showed one of my games to a few people and have had some of them say that the game takes a bit of time to load; I'm wondering if this is because I'm embedding the game's music? The code and graphics come to something like 200kb, and the music is close to 1mb; if I made the music external and then only played it once it had loaded, would this get round the problem? And if so, then when distributing my swf would I need to supply the mp3 in question separately? It seems a bit cumbersome to me, but it's the only way I can think of speeding up the loading process; do you think this is the best solution?

Cheers,

Mike.

Preloading External MP3s
I need to pre-load multiple external MP3s. I have a preloader on my flash piece that preloads the SWF file and shows a progress bar and all that jazz. I am using the Sound class to load all the MP3 files when I need them (they are voice overs).

Is there a way to hook the preloading of those sound files into the preloader that I already have and then just call them up when needed?

Preload External Mp3s - HELP
I am somewhat of an AS noob, so bear with me. I have a preloader already on my flash movie that basically just preloads the movie.


Code:
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
gotoAndPlay("start-fade");
}
Along with this movie, I have about 25 mp3 files that are used for voice over (the movie is a sort of tutorial). The files total about 6mb combined.

How would I include these mp3 files in the preloader so that when I call them (using loadSound) later on in the movie, they don't skip when they start playing?

Gaps In External MP3s
I read on Macromedia TechNotes, that there is a bug with gaps in MP3 audio, and i know about the onSoundComplete problems with it being aligned to 2048 samples or something. So i tried to load an external mp3 using this code:

//loop = a filename

MySound = new Sound();
MySound.loadSound("loops/" + loop + ".mp3",false)
MySound.onLoad = function(){
MySound.start(0,9999);
}

That still makes gaps at the end of each loop.
I tried the following code:

MySound = new Sound();
MySound.attachSound("1");
MySound.start(0,9999);

With mp3s and wavs. The mp3s had gaps and the wavs didnt, even though i exported all sounds as MP3 in the flash export setting, as the technote instructed.

But i wanted to be able to go mysound.swf?loop=sound
and it would work... but the loadSound doesnt work with Wavs, nor am i using wavs for internet streaming....

any ideas?

Macromedia Flash MX 2004 Professional

Position Slider For External Mp3s
I'm working on an audio player for a record label's website and they use external mp3s and they want a slider to show the song's playback position.
I know there's a way to get the total bytes of a sound object, and a way to get the playback position. Now all I need is a way to get the total length of the sound and i'll be good. Is that possible? Please, someone say yes! Or that there's another way.

Thanks in advance,
-Luke

PS before someone says is, I can't convert all the mp3s to swfs and set the timeline for each one

[F8] Problem W/External MP3s And LoadSound
Problem in IE. Firefox OK.

I understand that local file access has been severely hobbled in Internet Explorer. Nevertheless, I would like to use loadSound to grab an mp3 file. This is because I am passing the id3 tag info into text boxes.

Is there currently a workaround for allowing loadSound to get the mp3? I've tried using the full URL and it is still disallowed.

Here is the entirety of the code(with URL placeholder). Thanks. I really need some help.

code:
this.createTextField("display_txt1", this.getNextHighestDepth(), 57, 43, 100, 100);
this.createTextField("display_txt2", this.getNextHighestDepth(), 57, 77, 100, 100);
this.createTextField("display_txt3", this.getNextHighestDepth(), 57, 112, 100, 100);
display_txt1._width = 160;
display_txt1._height = 20;
display_txt1.multiline = false;
display_txt1.background = true;
display_txt1.backgroundColor = 0x303F47;
display_txt1.textColor = 0xFFFFFF;
display_txt2._width = 160;
display_txt2._height = 20;
display_txt2.multiline = false;
display_txt2.background = true;
display_txt2.backgroundColor = 0x303F47;
display_txt2.textColor = 0xFFFFFF;
display_txt3._width = 160;
display_txt3._height = 20;
display_txt3.multiline = false;
display_txt3.background = true;
display_txt3.backgroundColor = 0x303F47;
display_txt3.textColor = 0xFFFFFF;
//Set the initial loading message.
display_txt1.text = " Loading...please wait";
display_txt2.text = " Loading...please wait";
display_txt3.text = " Loading...please wait";

// Create a new Sound object to play the sound.
var song_sound:Sound = new Sound();
// Create the polling function that tracks download progress.
// This is the function that is "polled." It checks
// the downloading progress of the Sound object passed as a reference.
function checkProgress (soundObj:Object):Void {
var numBytesLoaded:Number = soundObj.getBytesLoaded();
var numBytesTotal:Number = soundObj.getBytesTotal();
var numPercentLoaded:Number = Math.floor(numBytesLoaded / numBytesTotal * 100);

};
// When the file has finished loading, clear the interval polling.
song_sound.onLoad = function():Void {
clearInterval(poll);
};
song_sound.onID3 = function():Void {
display_txt1.text = " " + song_sound.id3.artist + "
";
display_txt2.text = " " + song_sound.id3.songname + "
";
display_txt3.text = " " + song_sound.id3.album + "
";
};
// Load streaming MP3 file and start calling checkProgress(),
song_sound.loadSound("http://www.fulldomainname.com/song1.mp3", false);
var poll:Number = setInterval(checkProgress, 100, song_sound);

[F8] Using Multiple Buttons And External Mp3s
Hey Guys,

I've been trying to set up an Soundboard as a personal project where I have about 30-40 buttons, which each are linked to an external mp3.

Currently I have it set up as 40 Separate Play and Stop Buttons using the code below. Now I'm not sure how to do this next part, but how can I modify this code, to have only 1 Stop Button for 40 Separate External Mp3 Files

On the Frame:


Code:
var theme:Sound = new Sound(this);
theme.loadSound("song1.mp3");

on(release){
theme.stop();
theme.start(0,1);
}



On The Stop Button:

Code:
on(release){
this.onEnterFrame = function(){
so = _root.theme;
rate = 5;

newVolume = so.getVolume() - rate;
if(newVolume > 0) {
so.setVolume(newVolume);
} else {
so.setVolume(0)
so.stop();
so.setVolume(100);
this.onEnterFrame = null;
}
}
}

on(keyPress "<Space>"){
this.onEnterFrame = function(){

so = _root.theme;
rate = 5;

newVolume = so.getVolume() - rate;
if(newVolume > 0) {
so.setVolume(newVolume);
} else {
so.setVolume(0)
so.stop();
so.setVolume(100);
this.onEnterFrame = null;
}
}
}

[CS3] Play/pause On External Mp3s?
I have been searching the sound forums, but didn't quite found what I was looking for...

I have a little music player on my website, which loads about 20 external mp3s, the code I have is this:


Code:
var soundLoader:Sound = new Sound();
soundLoader.loadSound("audio/01.mp3", true);
Is there any way I can "pause" a song, and then hit play again and have the sound start where it stopped????

any help would be much appreciated..

Loading Mp3s
i am loading mp3's into a player and i want to have the end user set which tracks from the folder get taken into the player and how their titles appear. i can get the code below to wrok except when i move to loading the right mp3 from a variable in a text document. synatx problem ?


_root.mp3Player.s = new Sound();
mpeethree = trackone;
_root.mp3Player.s.loadSound("mp3/" + [mpeethree], true);
currentTrack = trackonetitle;
stopped=false;
paused=false;
stop();
_root.mp3Player.s.onSoundComplete = function() {
gotoAndPlay(2);
}

[F8] Loading In Mp3s Into Swf
Hi there,

I have an mp3 player swf that I've personalised from one that I've downloaded, that I am trying to load into my website, unfortunately even though I have compressed everything as much as I can, it is still too big to upload, got it down from about 5mb to 2mb. Is there any way I can load the mp3's into the player one at a time so the first one can get started playing and then the others are there ready when needed.

Regards,
Dan

SWF Desktop Vs External Files...
Hi All,

Am creating a flash desktop using SWF desktop (from ScreenTime). Having a problem loading external files - has anyone any experience of this? We're trying to run flash jester so we can launch explorer run & control the initial size & position...

cheers...

Possible? Load External MP3s To Flash Movie
Okay, I'm sure someone's asked this before, and I DID do a search in the forums, but the results were endless and didn't pertain to my question:

Can a Flash movie load an external MP3 and control it in the same manner as an embedded sound file?

If so, what would be the statement(s) used to load the MP3?

Thanx

Playing External Mp3s With The Flash Player
Hi!

Is there a way to make the flash player to play exernal mp3s?


Thanks.

External .mp3s That Play, Pause And Start Again?
I'm loading in external .mp3s that start off fine...stop at about 5-10 secs into the song then start over at the beginning. Anyone know why and/or how to fix/prevent this?

F8 Problem Linking To External Sound (mp3s)
I am using date and sound classes to upload mp3s based on date. It works fine as long as the sounds are in the library... Unfortunately I cannot have them reside there - the file gets too huge. I had them placed on our server.
I removed the mp3 files from the fla library and then pointed the action script to call up the sounds from the urls where they now reside. I get an undefined error - it is looking for the mp3s on my desktop. How do I get the fla to point to the urls??? Anyone had this problem?

Flash 8 Problem Linking To External Mp3s
I am using date and sound classes to upload mp3s based on date. It works fine as long as the sounds are in the library... Unfortunately I cannot have them reside there - the file gets too huge. I had them placed on our server.
I removed the mp3 files from the fla library and then pointed the action script to call up the sounds from the urls where they now reside. I get an undefined error - it is looking for the mp3s on my desktop. How do I get the fla to point to the urls??? Anyone had this problem?

External MP3s Playback Ultra Fast... : (
Hi All,

Is a bit of wierd one this...

I am streaming external MP3s into a game and it all works fine most of the time however occasionally the MP3 will play back very quickly and at a high pitch (all the mp3s are at 11khz) almost like a cartoon telephone voice,

If anyone has any ideas they'd be much appreciated

Cheers

Dan

External MP3s Playback Ultra Fast... : (
Hi All,

Is a bit of wierd one this...

I am streaming external MP3s into a game and it all works fine most of the time however occasionally the MP3 will play back very quickly and at a high pitch (all the mp3s are at 11khz) almost like a cartoon telephone voice,

If anyone has any ideas they'd be much appreciated

Cheers

Dan

Playing External Mono MP3s In Flash
Hallo all.
Just wanna know if anyone else has got this problem where external mono mp3s play twice the speed in Flash. I think I heard something about this quite a while ago but cant remember what the deal with it was. Anyone know how to fix this? Any help appreciated a lot.
Thanx
L.

Loading MP3s To Different Frames
Hello all. I have loaded an external MP3 with a preloader using the code below, but I want to load different MP3s to other frames when I navigate to the frame. What code would I need to do on the other frames to load the MP3s and have the progress loader gauge the progress. Many thanks in advance.

Code:
stop();
var song:String = "songs/song1.mp3";
var soundReq:URLRequest = new URLRequest(song);
var sound:Sound = new Sound();
var channel:SoundChannel;
sound.load(soundReq);

sound.addEventListener(Event.COMPLETE, onComplete);

function onComplete (event:Event):void {
channel = sound.play(0,1);
channel.addEventListener(Event.SOUND_COMPLETE, finishHandler, false, 0, true);
}

//---loader---
var myloader:Loader = new Loader();
myloader.load(soundReq);

myloader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progresshandler);
function progresshandler(myevent:ProgressEvent):void {
var myprogress:Number=myevent.target.bytesLoaded/myevent.target.bytesTotal;
bar_mc.scaleX=myprogress;
myTextField_txt.text = Math.round(myprogress*100)+"%";
}

//myloader.contentLoaderInfo.addEventListener(Event.COMPLETE, alldone);
//function alldone(myevent:Event):void {
//addChild(myloader);
//removeChild(myTextField_txt);
//removeChild(bar_mc);
//}

nextScreen_btn.addEventListener(MouseEvent.CLICK, nextscreen);
function nextscreen(myevent:MouseEvent){
gotoAndStop(10);
}

Loading Mp3s From XML With Actionscript
does anyone have a good example of an application that does this. I am actually looking for away to load the mp3 onRelease, unless its better to load all the mp3s at the beginning. However I was thinking that would take too long.

Mp3s / Loading Sounds
As i posted in the thread yesterday (IE+Flash Cache (problem solved though, thanks to the person who helped [img]images/smilies/smile.gif[/img] ) i'm working on a flash animation which loads an xml playlist, and then plays songs from it (using the loadsound function in actionscripting)

The problem is, sometimes flash seems to completely mess up the playback, for example: the sound plays back really fast and high pitched, rather than how it's supposed to sound (testing showed that when this happens a 7 min song plays back in about 1 min 20), only i can't seem to pinpoint the problem because other times it works flawlessly.

I encode all my Mp3s the same using LameMP3, 16bitrate, joint stereo and constant bitrate. Is there a way i can get round this problem? I was condisering adding the length of each song in the xml and somehow forcing flash to use that length.

Is that possible?

Thanks for your help!

About Loading Remote MP3s...
I recently posted a question about making a button trigger an MP3 file, and Goten gave me a quick solution. Load the MP3 into a movie clip and call the URL, however this does not solve the question about making an MP3 song array, then calling the sound clips remotely to minimize download time...the question is, how do I write the AS to do this?
I have a couple of samples on calling on one song clip but not multiple ones.
BTW- thanks for your input and patience Goten.

1 Play/Stop Flash Button - Many External Mp3s
I've searched around and can't seem to find an exact answer to my problem, so I'm hoping a FlashKit'er could lend a helping hand or at least a push in the right direction.

OK, lemme explain first. I have a very simple HTML site that has a list of ringtones for mobile phones. The list is: Artist, Title and then a Listen/Buy .gif button. The button opens a popup with information about how to 'install(?)' the ringtone onto your phone. What I would also like it to have is a simple Flash audio player, just with Play and Stop (maybe a progress timeline thing).

Now my question:

Is there a way to make one standard .swf that will play the external mp3 that is targeted from without the .swf, in just say, the HTML code or JS or even a .txt file?

The reason I ask is because I don't want to have to make 20+ seperate .swfs, plus it will make it easier for me to add or alter new ringtones in the future.

Can this be done? Can you understand my ramblings? Hahaha, I hope so.

I look forward to hearing from you all soon. Many thanx in advance...

LOADING MULTIPLE MP3s W/ LOADSOUND
Hello all,

I'm actually trying to setup an interface where I can FTP multiple MP3s to my server (with them named appropriately) and then be able to select different buttons on my Flash interface to play these MP3s. I've figured out how to load a single sound object just fine and control it, but now with MULTIPLE sound objects trying to be played its getting confusing. DO I HAVE TO UNLOAD the previous sound object before I load the next one? If so, on different levels? What if i'm randomly clicking buttons on my Flash interface and loading different sounds...if i have to unload the previous, how do I know which one to unload? If I don't have to unload, this shouldn't effect bandwith or quality of playing the FLash file right (I am event loading)? YOUR HELP IS MUCHO APRRECIATED.

Loading Streaming Mp3s Scripting?
code: on (press) {
if (playing02!=true && playing!=true) {
playing02=true;
paused02=false;
stopped02=false;
loaded02=true;
myEvent=0
myStreaming=1
//myMusic02 = new Sound(myMusicMc02);
myMusic02 = new Sound();
myMusic02.loadSound("FEEL_1_.mp3",true);
myMusic02Position=0;
myMusic02Volume=50;
myMusic02.setVolume(myMusic02Volume);
}
myMusic02.onSoundComplete=function() {playing02=false}
}

i got that script form a help file i found on the web, i have tried to break it down from a button code to a frame action, i'd like it to start on the 1st frame, i have another script to get it to start playing later, but i wanted to load it externly incase they go there 1st it can stream

any ideas on breaking it down?

Linkage Issues With Loading MP3s
Hello,

I am working on a game, and I am using MP3s within the SWF file to load at certain times. In order to make them loadable, I have set up the Linkage properties to :
-Export for ActionScript
-Export in first frame

The problem is, that it loads all the MP3s before the preloader even shows up, so there is a lot of time of blank screen. But when I take of "Export in first frame", I am not able to load the MP3s during runtime.

Is there a way to access the MP3 files without exporting them in the first frame?

Dynamically Loading Mp3s Into The Flash Player
I notice that in the 'What's new?' section of Flash mx's help menu it talks about being able to 'Dynamically load mp3s into the flash player using actionscript'

Can anybody point me to a tutorial/paste me the script to do this?

Thanks a lot

Mark

Interrupt Loading Of Movie Clips And MP3s?
I am helping a friend out with an audio player and have hit the wall because of a problem loading movie clips and MP3s (I've tried it with both types, and am currently using streaming MP3s, with the same problem).

4 buttons on the menu - click one to play one of 4 internal movie clips of an audio player. When the player pops up, it calls to load an external MP3 as such:

ActionScript Code:
stop();
// set audio player to active state
_root.sndBloodUp = true;
// music load
_root.myMusic = new Sound(myMusicMc);
_root.myMusic.loadSound("http://audio-clip-url", true);
_root.myMusic.start(0,1);
// play out when done
_root.myMusic.onSoundComplete = function() { play(); };
It loads and plays fine - even streams the audio when enough data is loaded. If you click on another of the 4 buttons while this audio is playing, it stops and starts loading the next audio clip. The problem comes when you interrupt the second one. The next clip will not load for a long time, possibly because it is still downloading the MP3 data for the first 2 clips. And sometimes the audio clips will overlap - you can imagine what that sounds like.

You can check out the preview of the project at this URL:
http://www.seetwg.com/m2/
Go to the "Our Tunes" section.

My question is this - how can I interrupt the download of a streaming MP3 file? I want to have the browser immmediately STOP downloading the clip when the user moves on to another song file.

I've been wrangling with this for 3 weeks, and am having a bitch of a time with this. If I'd been in on this at the start, I would have recommended building the movie a different way, but the project is almost done and I have to cobble a solution after the fact. And as a freebie for a friend. OY!

Any help or suggestions would be appreciated.

Streaming Mp3s/creating A Buffer Loading Animation
I am currently doing a webpage for a full length motion picture, and the producer wishes to have the entire sound track available for playback. I have compressed the files as much as possible without them causing migranes from low bitrates.

But my problem stems from the fact that while the mp3 is loading there is nothing to tell the user that it is buffering the music. I could always fake it with dummy loading animation, but want to actually represent the progress of loading and streaming of the audio. If anyone can help me please feel free to respond or send me an email.

Thanks in advance
toeny@aol.com

Mp3 Player Component? Advice For Loading And Controlling Different Mp3s?
Hi - I'm creating a website where I need to load different sound clips and to controlthem from the SWF. Baisically it's lots of buttons that will each load different tunes, and then one should be able to play, pause etc. the selected song using the interface.

I found this tutorial, http://www.kirupa.com/developer/mx/soundbar.htm, but I don't really know if that's what I need here.

Is there a free component somewhere? If not, anybody have any advice?

Thanks in advance

nilsd
www.nilsd.com

Mp3 Player Component? Advice For Loading And Controlling Different Mp3s?
Hi - I'm creating a website where I need to load different sound clips and to controlthem from the SWF. Baisically it's lots of buttons that will each load different tunes, and then one should be able to play, pause etc. the selected song using the interface.

I found this tutorial, http://www.kirupa.com/developer/mx/soundbar.htm, but I don't really know if that's what I need here.

Is there a free component somewhere? If not, anybody have any advice?

Thanks in advance

nilsd
www.nilsd.com

[fcs3] External Mp3s, Multiple Play Buttons,1 Stop Button With Fade Out - Please Help
Hey Guys,

I've been trying to set up an Soundboard as a personal project where I have about 30-40 buttons, which each are linked to an external mp3.

Currently I have it set up as 40 Separate Play and Stop Buttons using the code below. Now I'm not sure how to do this next part, but how can I modify this code, to have only 1 Stop Button for 40 Separate External Mp3 Files. (Please Don't Suggest stopAllsounds(); like someone did on another forum, that's not want I wanted)

I First Posted this on here on August 9th, and had no help, and I'm hoping that this time I can get some help for this.

On the Frame/Button:


Code:
Sound = new Sound(this);
theme.loadSound("song1.mp3");

on(release){
theme.stop();
theme.start(0,1);
}



On The Stop Button:

Code:
on(release){
this.onEnterFrame = function(){
so = _root.theme;
rate = 5;

newVolume = so.getVolume() - rate;
if(newVolume > 0) {
so.setVolume(newVolume);
} else {
so.setVolume(0)
so.stop();
so.setVolume(100);
this.onEnterFrame = null;
}
}
}

on(keyPress "<Space>"){
this.onEnterFrame = function(){

so = _root.theme;
rate = 5;

newVolume = so.getVolume() - rate;
if(newVolume > 0) {
so.setVolume(newVolume);
} else {
so.setVolume(0)
so.stop();
so.setVolume(100);
this.onEnterFrame = null;
}
}
}

Stream Works From Local Desktop To Server But Not Server To Server
I have flash media server running on linux. If I launch a test application from my desktop that points to the flash media server (rmtp://myserver.com/live) it works beautifully. However, If I launch an application from my server(http://myserver.com/myapp) and have it point to my flash media server (rmtp://myserver.com/live) i get a rejected from server error. Does anyone know why this would behave like that and how it might be fixed? Thank you.

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