Skip to main content
Aug 21, 2009 3:43 PM UTC
Question

SharedObject - Consuming Data

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 is closed to new replies. Start a new post to keep the conversation going.

    7 replies

    calmchessplayer
    Inspiring
    Aug 21, 2009 3:56 PM UTC

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

    Translate
    calmchessplayer
    Inspiring
    Aug 21, 2009 3:57 PM UTC

    or so.data.prop0 = "";

    Translate
    Aug 21, 2009 4:00 PM UTC

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

    Translate