Skip to main content
January 4, 2010
Question

Multiple shared objects

  • January 4, 2010
  • 1 reply
  • 489 views

There is an example app for FMS where people can move a ball which they share

http://www.adobe.com/devnet/flashmediaserver/sample_apps.html

I'd like to have this app extended so that:

- each user has his own ball

- The balls can be customized (e.g. color etc)

I'd like to know what the best way is to create such an app. Would each user have his own shared object? Or would there be only one shared object with an array?

Any help is appreciated how I should tackle this problem.

thanks

    This topic has been closed for replies.

    1 reply

    calmchessplayer
    Inspiring
    January 5, 2010

    you would need each ball to have its own shared object thereby creating an onsync event for each shared object but i'd only have 1 onConnect event on the client side.

    January 5, 2010

    ok, thanks for this. But what's the best way to create an onsync event for each of the clients when somebody new connects?

    tx

    calmchessplayer
    Inspiring
    January 5, 2010

    do you mean you want a new ball for each client that connects? if you don't then t

    he answer is an onsync event will automatically be created.