Hi,
I didn't find a way to put a property (position, anchorPoint etc.) as an argument in a function.
I tried:
It's a function inside a loop.
function loopArray(theArray,layers,theProp,n){
for (var j=0; j<theArray.length; j++){
layers[n].theProp.setSelectedAtKey(parseInt(theArray[j]),true);
}
}
for (var i=0; i<layers.length; i++){
loopArray(anotherArray,someLayers,AnchorPoint,i);
}
It does't work.
Thx in advance
Candos