+ Reply to Thread
Results 1 to 2 of 2

Thread: listening for electroserver events in nested swf

  1. #1
    Junior Member
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    listening for electroserver events in nested swf

    I use electroserver to create game, log in, etc in a root level movie. I can create/update/and get the events for room variables at this level.

    I then load a swf which needs to be able to: update room variables, listen for room variable updates, and set new local variables based on the updated room variables.

    Anyone done this? It seems that I should be able to do this directly without creating new events and listeners, but not sure on the best approach.

    Thanks

  2. #2
    Senior Member
    Join Date
    Jul 2008
    Posts
    341
    Thanks
    0
    Thanked 2 Times in 2 Posts
    You could always have the loaded swf call wrapper functions in the main swf. Another way is to have the main swf pass your ElectroServer connection object to the loaded swf and handle events this way.

    I suggest the first method as it allows your main swf to be developed mainly as a communicator and doesn't require you to recode the swf you're loading every time you change how you interact with ElectroServer.

+ Reply to Thread

Tags for this Thread

Posting Permissions

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