all groups > macromedia flash flashcom > october 2007 >
You're in the

macromedia flash flashcom

group:

main.asc problem


main.asc problem eb110k
10/21/2007 12:00:00 AM
macromedia flash flashcom:
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.

Re: main.asc problem + Alex +
10/30/2007 7:40:52 AM
[quoted text, click to view]
You can check for a nickname on the client side , I don't see a need
to connect to a server without a nickname , you can check the nick
before connecting





[quoted text, click to view]

AddThis Social Bookmark Button