Adobe’s (nice) new Vector class has a bug in it.
var v:Vector.<String>=new Vector.<String>();
v.push("one");
v.push("two");
v.push("three");
// Tracing out vector here produces "one","two","three" as expected
// Stick a new value on the front
v.unshift("zero");
// Tracing out vector here produces "zero","one","two" -- eh? We've
lost the last element.
// This is the equivalent to unshift(), using splice instead...
v.splice(0,0,"minusOne");
// Tracing out vector here produces "minusOne","zero","one","two", as expected.
Annoying, but at least there’s a workaround.
It’s already on Jira, and has apparently been fixed – but I assume it’s a Flash Player issue, so I’m guessing there’ll be broken versions in the wild for quite some time to come…
https://bugs.adobe.com/jira/browse/ASC-3620


Thanks for the post, I just ran into this problem and had no idea what was going on until I found your post.