3.2.0

setting array element value for defined property

I feel a bit stupid because I think I might be placing a silly question:
how do I set a [nth] element value of a custom property defined as an array?

Example:

obj.defineProperty("colors", new Array()) ;
...
obj.setProperty("colors", "red")[n] ;
or
obj.setColors("red")[n] ; ?


Thanks.
Gianni Luppi
February 3,
obj.setProperty("colors", "red", n);

or

obj.setColors("red", n);
Alex (ActiveWidgets)
February 3,

This topic is archived.

See also:


Back to support forum