A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Access to shares and streams

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    190

    Access to shares and streams

    How can I use the Client.readAccess and Client.writeAccess to allow only reading from a certain SharedObject/Stream.

    eg. Something along the lines of:

    Code:
    application.onConnect(newClient,user){
        newClient.writeAccess = "";
        newClient.readAccess = user+"/";
        application.acceptConnection(newClient);
    }
    Later,
    Somar!

  2. #2
    psx = new Moderator();
    Join Date
    Jan 2001
    Posts
    923
    Did you try it? It's hard to tell from the docs if it's possible or not. they mention directories but nothing about individual streams other than to imply that it might be possible. I'd try something like this?

    Code:
    application.onConnect(newClient,user){
        newClient.writeAccess = "/mystreams/"+user;
        newClient.readAccess ="/mystreams/"+user;
        application.acceptConnection(newClient);
    }

    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