Adding sounds. Help please.

LightBeamLightBeam disse

a muito tempo atrás | Texto #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 disse

a muito tempo atrás | Texto #2
Ok I figured it our. URLRequest doesn't work.

PatheticAssassinPatheticAssassin disse

8 meses atrás | Texto #3
Glad you figured it out, sorry you had no help from me in the forums

Responder para a discussão

Registre-se agora para responder

Nonojogos

nonojogos.com é um site independente de jogos onde você pode jogar tanto jogos de um jogador ou de múltiplos jogadores gratuitamente.

Ferramentas para Desenvolvedor

Se você for um desenvolvedor de jogos em flash, temos algumas ferramentas impressionantes para ajudar você a criar jogos ainda melhores.

Melhores jogos

Porque não experimentar alguns dos melhores jogos online em flash que temos, completamente gratuito?

Copyright ©2007-2012 Nonojogos™ - All rights reserved.20.0012ms on SERVER34097