Skip to main content
calmchessplayer
Inspiring
October 28, 2009
Answered

access array in RSO client side

  • October 28, 2009
  • 1 reply
  • 578 views

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 has been closed for replies.
    Correct answer

    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");

    1 reply

    Correct answer
    October 28, 2009

    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");

    calmchessplayer
    Inspiring
    October 28, 2009

    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