Adding sounds. Help please.

LightBeamLightBeam povedal

veľmi dávno | Príspevok #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 povedal

veľmi dávno | Príspevok #2
Ok I figured it our. URLRequest doesn't work.

PatheticAssassinPatheticAssassin povedal

pred 8 mesiacmi | Príspevok #3
Glad you figured it out, sorry you had no help from me in the forums

Odpoveď na diskusiu

Zaregistruj sa a zapoj sa do diskusie

Flashky.sk

flashky.sk je herný portál kde môžeš hraj single- aj multiplayerové flashové hry.

Nástroje pre vývojárov

Ak si vývojár flash hier tak pre teba máme skvelé nástroje, ktoré ti pomôžu robiť ešte lepšie hry.

Skvelé hry

Vyskúšaj niektoré z najlepších online flash hier, ktoré tu máme! Samozrejme zadarmo

Copyright ©2007-2012 Flashky.sk™ - All rights reserved.15.6ms on SERVER34096