silly question
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: silly question

  1. #1
    Senior Member
    Join Date
    Jan 2001
    Posts
    285
    I know this is probably a silly question, but I have to ask it. I'm just learning how to use flashCom, so bear with me.

    I want the server script to pass x back to all clients. here's the server script.

    Code:
    x=1;
    application.onConnect = function(client) {
    	trace("CONNECTING: " + application.name + " connect from " + client.ip+"\r");
    	application.acceptConnection(client);
    	x++;
    	trace("TOTAL CLIENTS: " + x);
    
    
    };
    
    application.onDisconnect = function (client){
    	trace("CONNECTING: " + application.name + " connect from " + client.ip+"\r");
    	x--;
    	trace("TOTAL CLIENTS: " + x);
    };
    //
    //
    i get the tracing in the admin window. how do I get the data to the client. i'm confused.

    enjoy

    tutash

  2. #2
    psx = new Moderator();
    Join Date
    Jan 2001
    Posts
    923
    Is that all of your server-side code?
    The easiest would probably be to add X to a shared-object. Then just read it on the client side.

    Psx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width


HTML5 Development Center

Poll by Flashkit.com