Skip to main content
calmchessplayer
Inspiring
Oct 28, 2009 5:17 PM UTC
Answered

access array in RSO client side

I've shoved an array in a RSO serverside and now i need to update values in the RSO client side ...I tried the following but it doesn't work...I'm using actionscript 3.0

so11.setProperty("conTrol[1]","test");
     so11.setDirty("conTrol");

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer
    Oct 28, 2009 8:29 PM UTC

    The first argument in setProperty needs to be a string, so you can't do it that way. Try accessing the data of the SO and do your update there:

    var arr:Array = so11.data['conTrol'];

    arr[1] = "test";

    so11.setProperty("conTrol",arr);

    so11.setDirty("conTrol");

    2 replies

    Correct answer
    Oct 28, 2009 8:29 PM UTC

    The first argument in setProperty needs to be a string, so you can't do it that way. Try accessing the data of the SO and do your update there:

    var arr:Array = so11.data['conTrol'];

    arr[1] = "test";

    so11.setProperty("conTrol",arr);

    so11.setDirty("conTrol");

    Translate
    calmchessplayer
    Inspiring
    Oct 28, 2009 10:18 PM UTC

    Thats the same method that has to be used on the server side.......don't know why i didn't try it......*shrugs* thanks for you support

    Translate