new Audio
cause error!
safaricrash.jpg (84.7 KB)
AFIK the way to handle audio in cocos2d-html5 is via the audio engine
e.g.
var audioEngine = cc.AudioEngine.getInstance();
audioEngine.playEffect("res/mysound",false);
Thanks, but this error occurs in samples of Cocos2d-HTML5: Crystal Craze - game and MoonWarriors - game
ummm
New Audio() is called in the CocosDenshion SimpleAudioEngine.js and the Audio object is defined for Mozilla in https://wiki.mozilla.org/Audio_Data_API
What browser are you using?
Safari 5.1.7(7537.57.2)