I am making a 2-player game in smartfox. In small game, I intend to use some sound file but it does not work. I do not know whether it is problem with Flash or problem with Smartfox.
My code :
var punch:Sound = new Sound();
punch.attachSound("punch");
mouseListener.onMouseDown = function ()
{
punch.start(0, 1);
}
Small game is a SWF file I load into main game. If I play the small game seperately to test. it works. If I play it in main game, it does not work.
Could anybody help me ?
Sound in smartfox ?
- thecreatrix
- Posts: 19
- Joined: 20 Aug 2008, 02:32
- Contact:
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 73 guests