Ask a Question related to Macromedia Flash Flashcom, Design and Development.
-
tawse #1
Keeping track of clientObj
Hi there,
I'm developing an application where I do some checking with another
application using LoadVars before I allow a client to connect. My callback
function then calls application.rejectConnection or
application.acceptConnection. These methods both take a Client object as a
parameter. This is ok when reject or accept are in application.onConnect
because it is passed the client object. But my callback function needs access
to the client object too.
I can store the client object in a global variable and everything works fine
but I'm not sure whether this global variable gets shared between all instances
of the application or just this instance (by instance I mean each time it is
run, not instance as in rtmp://server/application/instance). If the former,
then I'll have problems when clients connect concurrently. If that is the case,
does anyone know how my callback function can get access to the client object
in order to call application.accept/rejectConnection.
Here's a simplification of my code:
var currentClient = null;
application.onConnect = function(clientObj, param){
serverCall = new LoadVars();
serverCall.onData = afterCodeCheck;
serverCall.load("...");
}
function afterCodeCheck(result){
if(result == 1){
application.acceptConnection(currentClient);
}else{
application.rejectConnection(currentClient);
}
}
Hope that makes sense. Thanks very much
Andy
tawse Guest
-
Keeping track of who submitted the form by their UserId
Hello All, I'm using ASP as my language. My users has to login to gain access to my form. What I what to do is when the user logs in I want them... -
keeping track of new additions to your scene
Say I have a racetrack and different types of cars that get swapped in and out on a mousedown action. Is there a way to store ONLY the new models... -
Keeping track of checkmarks.
Hello all, I have a pretty cool situation here that I thought I had figured out. I have a datagrid that is 4 columns bound to a table and... -
Opinions on keeping track of simple web stats with MS SQL Server/ASP.NET
I know we have access to log files and web statistics can be pulled from those. But the guy who wants it built was thinking we should keep track of... -
Keeping track of which user controls need to be loaded and which not
Hi all, What methods are used to keep track of when dynamic user controls must be loaded and when not? Regards John.



Reply With Quote

