as2 avchat returning error
Posted: 22 Feb 2010, 08:26
Hi,
The RedBox AS2 API require an instance of the SmartFoxBits Connector to work properly.
I am trying to implement a web cam into the tic tac toe game but what if I do not want to use the mc_connector. Can I sitll use the AVChatManager? If I can't use this, what is the easiest way I can set up a web cam between two people. With the sftrix (tic toe) example, the two people joined a room and it's assumed that they want to set up web cam chat.
The failure occurs when I call this. I noticed in the .as examples it does this as well but I don't see it use the mc_connector:
function initializeAV():Void
{
// Create AVChatmanager instance
avChatMan = new AVChatManager(smartfox, red5IpAddress, true)
avChatMan.addEventListener(RedBoxChatEvent.onAVConnectionInited, onAVConnectionInited)
avChatMan.addEventListener(RedBoxChatEvent.onAVConnectionError, onAVConnectionError)
avChatMan.addEventListener(RedBoxChatEvent.onChatRequest, onChatRequest)
avChatMan.addEventListener(RedBoxChatEvent.onChatRefused, onChatRefused)
avChatMan.addEventListener(RedBoxChatEvent.onChatStarted, onChatStarted)
avChatMan.addEventListener(RedBoxChatEvent.onChatStopped, onChatStopped)
inited = true
}
Please help,
Thanks in advance!
The RedBox AS2 API require an instance of the SmartFoxBits Connector to work properly.
I am trying to implement a web cam into the tic tac toe game but what if I do not want to use the mc_connector. Can I sitll use the AVChatManager? If I can't use this, what is the easiest way I can set up a web cam between two people. With the sftrix (tic toe) example, the two people joined a room and it's assumed that they want to set up web cam chat.
The failure occurs when I call this. I noticed in the .as examples it does this as well but I don't see it use the mc_connector:
function initializeAV():Void
{
// Create AVChatmanager instance
avChatMan = new AVChatManager(smartfox, red5IpAddress, true)
avChatMan.addEventListener(RedBoxChatEvent.onAVConnectionInited, onAVConnectionInited)
avChatMan.addEventListener(RedBoxChatEvent.onAVConnectionError, onAVConnectionError)
avChatMan.addEventListener(RedBoxChatEvent.onChatRequest, onChatRequest)
avChatMan.addEventListener(RedBoxChatEvent.onChatRefused, onChatRefused)
avChatMan.addEventListener(RedBoxChatEvent.onChatStarted, onChatStarted)
avChatMan.addEventListener(RedBoxChatEvent.onChatStopped, onChatStopped)
inited = true
}
Please help,
Thanks in advance!