I have a setter for a vector that works properly, but I'm trying to make it do some additional things when one of the elements is changed.
private var _myVect:Vector.<int> = new <int>[0,0,0,0];
public function set myVect(newVect:Vector.<int>):void {
trace(newVect);
_myVect = newVect;
}
If I do myVect[0] = 1, then _myVect becomes [1,0,0,0] but it doesn't even trace. How can I get the element number and assigned value from inside the setter?