…and thank you Ryerson University of Toronto, Ontario for hiring such a helpful Assistant Director of Application Development and Integration in your Computing and Communications Services. :)

See, I’ve been posting to the flexcoders list for some time (flexcoders@yahoo.com) regarding how one can get the additional message from Flash Media Server as it says in the AS2 language:

application.onConnect = function(client, user){
if (typeof user == "undefined" || ! user.userName){
application.rejectConnection(client, {msg: "Invalid user object."});
return false;
}
}

Well, he’s been very helpful pointing out how to get to that custom message in the object returned to Flex:

For example on the server:
application.rejectConnection(client, {msg:”Go Away!”});

Can be retrieved on the client:

public function onConnect(event:NetStatusEvent):void{
var errorMsg:String = “Can’t connect to FMS!\n” +
event.info.description;

Thanks Brian! I’ve been posting the same question on the flex list a number of times, and the usual super-helpful adobe guys just weren’t biting on this one…

….NOW if someone has access to the betalist for Flash Media Server 3, then sign me up please!