How do I change the values of arrays from different classes? i've array in one class called creation
all the array are global variable
import addClass;
public var first1:Array = new Array();
public var op:Array = new Array();
public var second:Array = new Array();
public var res:Array = new Array();
public function creation() {
for (i= 0 ; i<= 4; i++)
{ first1[i]= createCustomTextField(100,(i*40),50,30);
op[i]= createCustomTextField(160,(i*40),50,30);
second[i]= createCustomTextField(220,(i*40),50,30);
res[i]= createCustomTextField(280,(i*40),50,30);
}
}
and the second class is addClass and i want to change the value of the arrays thru it
the definition code
var MyArrays:creation = new creation
var first1:Array = creation.first1;
creation.first1 = first1;