Skip to main content
August 21, 2009
Question

SharedObject - Consuming Data

  • August 21, 2009
  • 1 reply
  • 1879 views

Hi all,

  Is it possible to set just one property of a remote SharedObject to clear itself?  I understand that calling "clear" on an RSO will cause ALL properties to fire the "clear" event and clear out; however, what I want to do is clear out the data in a specific property so that the "clear" event/message is fired (and not the "change" one since I already have some actions in that).

  I suppose I could just set the property to an empty string and put guard code inside my handling of the "change" event/message, but, I'd rather not do that.

  Any ideas?

Cheers,

Duncan

    This topic has been closed for replies.

    1 reply

    calmchessplayer
    Inspiring
    August 21, 2009

    just set it null.....so.setProperty("prop0","");

    calmchessplayer
    Inspiring
    August 21, 2009

    or so.data.prop0 = "";

    August 21, 2009

    Yeah, I tried that, but that just seems to fire the "change" event instead of the "clear" event...