ActionScript Binding Array Data?

Posted by TheDarkIn1978 on Stack Overflow See other posts from Stack Overflow or by TheDarkIn1978
Published on 2010-05-22T14:47:30Z Indexed on 2010/05/22 14:50 UTC
Read the original article Hit count: 157

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about arrays