Welcome, Guest
  • Author Topic: Player bug with AMF  (Read 1788 times)

    Musicman

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 2685
      • View Profile
      • Email
    Player bug with AMF
    « on: 05/07/03, 00:59 »
    Hi,

    I came across this problem

    movie creates local storage with
    replies = sharedObject.getLocal("replies")
    and eventually adds data
    replies.data.q = []
    replies.data.q[0] = {completed:0}

    Finally movie tries to send...
    nc.call('myfunction', reply, replies.data)
    but no data arrives at the server.
    nc.call('myfunction', reply, replies.data.q)
    produces much better results :)

    I also tried
    var ds = replies.data
    nc.call('myfunction', reply, ds)
    Listing variables shows the data as an empty object (it is more like a shortcut rather than a real copy anyway), so the player seems to have problems serializing that. Be prepared to create a function that makes a deep copy of your data, just that it can be sent correctly

    Musicman