Adding sounds. Help please.

LightBeamLightBeam zei

een tijd geleden | Bericht #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 zei

een tijd geleden | Bericht #2
Ok I figured it our. URLRequest doesn't work.

PatheticAssassinPatheticAssassin zei

8 maanden geleden | Bericht #3
Glad you figured it out, sorry you had no help from me in the forums

Antwoord op onderwerp

Schrijf je nu in om te kunnen antwoorden op onderwerpen

Nonoba

nonoba.nl is een onafhankelijke spelletjes site waar je zowel individueel als gezamenlijk spelletjes gratis kunt spelen.

Developer gereedschap

Als je een flash spelontwerper bent hebben we gave gereedschappen die je kunnen helpen om nog betere spellen te ontwikkelen.

Geweldige Spellen

Waarom probeer je niet een van de beste online flah spellen die wij hebben voor nop?

Copyright ©2007-2012 Nonoba™ - All rights reserved.337.0193ms on SERVER34097