Skip to main content
Inspiring
January 10, 2007
Question

Director Flash 8 xtra breaks shared object and onSync

  • January 10, 2007
  • 4 replies
  • 1056 views
This one has driven me insane for days, but at least now I know what the problem is. It's really a Director-Flash8 xtra-FMS problem, but I figure the best chance for a solution is posting it here.

The problem is this: The Director Flash 8 xtra update messes up remote shared object connections to FMS applications. The Management Console debugger does not show any SO properties ("no data"), and only the "clear" onSync event fires. The old Flash 7 xtra worked/works fine. To illustrate, I've tested the following code in the Director message window with both the v8 and v7 xtra (if you know Actionscript and not Lingo, it's still easy to figure out what happens here). It basically creates and connects a remote shared object on FMS:

rrr = newObject("SharedObject")
nnn = newObject("NetConnection")
sss = "rtmp:/apptest01" -- app on locally running FMS
er = nnn.connect(sss)
put er
-- 1
fff = rrr.getRemote("tester", nnn.uri, true)
put fff
-- <flash object>
er = fff.connect(nnn)
put er
--1
-- so it's all good until here. onSync callback works with "clear", etc, but...
fff.data.foo = 55.5
put fff.data.foo
-- 55.5... but only shows in Mgmt Console when using the v7 xtra...
-- when using the old flash7 xtra,
-- debugging the FMS app and onSync events works correctly,
-- but when using flash8 xtra,
-- debugging the FMS app shows "no data" for this shared object. foo = 55.5 should be there.
-- also, onSync events no longer fire after the initial "clear".

If I translated this into actionscript and ran it in Flash 8 vs Flash 7, etc, would I get the same problem? I'll try that next, but it took me a while to get this far. Is it simply a matter of permission or firewall setting? Or is it something just broken with the Director flash 8 xtra?

Thanks
    This topic has been closed for replies.

    4 replies

    Participating Frequently
    December 12, 2007
    I don't know much about lingo, but in actionscript this seems to be a frequent issue that people hit. The problem is that a "SharedObj.getRemote()" (or "SharedObj.get()" if its serverside) call did not register an onSync before you try to manipulate the data.

    Check out this page for details on how to handle this:
    http://www.peldi.com/fmswiki/index.php?title=My_favourite_onSync
    Inspiring
    December 9, 2007
    Hi tedalde2,

    How are things? Did Adobe ever fix this problem? Or have you been able to emulate all your functionality in Director Multiuser Server? (I was under the impression that the big draw to Flash media Server is that it had support for sync'd objects) - I'm wondering what server app to use myself.
    Participating Frequently
    February 19, 2007
    Is there any further info on this issue?
    tedalde2Author
    Inspiring
    February 19, 2007
    As of just last week, Adobe can replicate the problem and is "working on it". I don't anticipate a shockwave-flash-xtra update to come out of this, but perhaps they can identify some other work-around. If you can avoid using "success" onSync events and don't need shared object debugging, then FMS works with Director/Flash 8 xtra... but this may be a symptom of yet more bugs that I haven't seen.

    I'm stopping development on my FMS/Director project until this is resolved... I may need to crack open the old Multi User xtra.
    tedalde2Author
    Inspiring
    January 15, 2007
    I thought it may have been the server version I was using, 2.0.0. But I upgraded to 2.0.3 and the problem persisted. I also checked and re-checked on totally different computers. Same result; Flash 8 xtra shared objects are broken. Simply changing to the Flash 7 xtra fixes the problem. I also built a simple test SWF in Flash 8 Authoring, and it worked; shared object data and onSync works fine.

    So the problem is the Flash 8 xtra for Director is basically unusable with FMS. I'll try to open a ticket with Adobe.