Adding sounds. Help please.

LightBeamLightBeam said

a long time ago | Post #1
I am having trouble adding sounds in my game when I use AS3.
The way I saw it being done is importing the sound file to the library then right click on it > properties. Check the box where it says Export to actionscript, and give it a class name. Then in the actioscript file I wrote the following code.

sound = new Sound(new URLRequest("nameofthefile.mp3");
sound.play();

This works locally, but when I upload it to nonoba it doesn't play anything. Any ideas? Appreciate your help.

LightBeamLightBeam said

a long time ago | Post #2
Ok I figured it our. URLRequest doesn't work.

PatheticAssassinPatheticAssassin said

8 months ago | Post #3
Glad you figured it out, sorry you had no help from me in the forums

Reply to thread

Sign up now to reply to threads

Funkyball

funkyball.com is an independent gaming site where you can play both single- and multiplayer games for free.

Developer Tools

If you're a flash game developer, we've got some awesome tools to help you make even better games.

Great Games

Why not try some of the very best online flash games we've got, completely free?

Copyright ©2007-2012 Funkyball™ - All rights reserved.34.0019ms on SERVER34097