trace(lastElVec >= stackIdx.length);
try { stackIdx[lastElVec] = 0; } catch (error:RangeError) { trace(error); }