ActionScript Binding Array Data?
- by TheDarkIn1978
i would like to update the numbers i've added to an array from variables, when those variables change. is it possible change these variables and have the array update automatically?
var first:Number = 1;
var second:Number = 2;
var myArray:Array = new Array(first, second);
first = 3;
second = 4;
trace(myArray) //outputs 1,2