all groups > flash actionscript > october 2007 >
You're in the

flash actionscript

group:

Sound loads but refuses to play


Sound loads but refuses to play shadybonz
10/14/2007 11:06:03 PM
flash actionscript:
simple:
var my_sound:Sound = new Sound();
my_sound.loadSound("music/" + mix, true);

of course, it's alot more complicated, but this won't even work. It loads the
file, I know because I can see the duration, but refuses to play it. I've tried
start(), (this), and onLoad() to get it started up, but none work. Th silly
thing is that it works perfectly on my laptop, but not on my desktop or more
importantly, my web page. I thought there might be some security issues
involved (a grey area for me) but then why would the file load at all? As you
can see, the songs are just in a subfolder, so I can't see why there would be a
problem.

I even created a test.fla that was just a copy-paste job from the Sound class
documentation, with no bells or whistles, and even that didn't work- again it
would load all right, but not play. I would have just assumed some setting was
amuk on my desktop, but it also doesnt work on my site. So I'm stuck sucking a
gas pipe... anyone have some suggestions??
Re: Sound loads but refuses to play kglad
10/15/2007 12:57:47 AM
Re: Sound loads but refuses to play shadybonz
10/15/2007 2:16:11 AM
of course. I hard coded "music/Mr_Brightside.mp3" to keep things simple at one
point. I want to reiterate that this code ran fine on one computer, but not on
another. So my code can work, it just chooses not to except on my laptop.
Re: Sound loads but refuses to play clbeech
10/15/2007 2:29:14 AM
hmm... strange. I was wondering about trying a full directory path, also.

I wonder, this may be a dumb question but ... is the file directory
("music/Mr_Brightside.mp3") available on the laptop, with the music file in it?
AddThis Social Bookmark Button