Flash/ActionScript help please.
Page 1 of 1
sTo0z
[Moderator] Babysitter



Posts: 7449
Location: USA
PostPosted: Mon, 13th Feb 2006 04:36    Post subject: Flash/ActionScript help please.
Damn this really pissin' me off, so I hope you guys can help me out.

I made an extremely simple flash mp3 player, just plays on loading and has a play and stop button.

I have this code in there:
Code:
jeffPlay = new Sound( this );
jeffPlay.loadSound( "song.mp3", true );


If I publish and open the .swf on my machine, it works perfect, but after I upload both the sound file and the .swf, it doesn't work anymore when I load it in a webpage.

Anyone know what's up? Confused Crying or Very sad


Back to top
[sYn]
[Moderator] Elitist



Posts: 8374

PostPosted: Mon, 13th Feb 2006 04:39    Post subject:
Id guess it cant find the file? try using "../song.mp3" or maybe static link it Smile?
Back to top
sTo0z
[Moderator] Babysitter



Posts: 7449
Location: USA
PostPosted: Mon, 13th Feb 2006 04:59    Post subject:
Yah I think it was some dumb permission thing...

I ended up doing the entire path to the file "http://www.site.com/folder/song.mp3"

but it was yelling at me for something before so I took it off that, put it back and changed a permission thing, works now.

Thanks sYn. Very Happy


Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Programmers Corner
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group