I'm also still confused with arrays here. See
link
This will work fine:
set(array[0].value,2);
set(array[1].value,3);
set(array[2].value,4);
set(array[3].value,5);
trace('hotspot 0=', get(array[0].value));
trace('hotspot 1=', get(array[1].value));
trace('hotspot 2=', get(array[2].value));
trace('hotspot 3=', get(array[3].value));