PDA

View Full Version : main.asc problem


eb110k
10-21-2007, 08:35 AM
Hello, I'm trying to develop broadcasting with Flash Media Encoder and put text chat.
For text chat, I put login screen to define nickname for user.
I have to write some code for security on main.asc like:


application.onConnect = function(currentClient, nickName) {

// Reject connection if user did not enter nickname (Critical Error)
if (nickName.length == 0) {
application.rejectConnection(currentClient);
return;
}

and so on.....
};



But on Flash Media Encoder, I also have to access same instance and main.asc above.
So, Flash Media Encoder returns an error for reject connection beacuse it meet if statement of main.asc.

I'm a newbie to FMS development.
Is there any way to solve this problem, like use different instance and connect each other or more simpler way?
Please someone advise.

Thank you.