Also, if you want to use the
you call
application.acceptConnection()
issuing any additional commands. The following code sets up this sequence of actions:
application.onConnect = function(clientObj,name,passwd)
{
// First accept the connection
application.acceptConnection(clientObj);
// After client is registered with the application instance
// you can use "call" method
clientObj.call("onWelcome", "You are now connected!!!");
return;
// After you call acceptConnection() or
// rejectConnection() within onConnect, return value is ignored.
}
If you're using components, see
on page
46.
44
Using Media Classes
method on the Client object that is connecting, make sure
call()
and know that the client is connected before
"Handling events in a component-based application"
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-DEVELOPING MEDIA and is the answer not in the manual?