cc.AudioManager.sharedEngine().init(“mp3”);
cc.Loader.shareLoader().preload([
{type:“effect”,src:“Resources/monster/effect2”}
]);
cc.AudioManager.sharedEngine().playEffect(“Resources/monster/effect2”);
I am using the cc.loadjs(‘…/lib/cocos2d-html5-alpha-canvasmenu-min.js’);
The error is INVALID DOM state when I step to the playEffect function.