so I have array like ParamsArray
{a,b,a,a,...b}
(so i have 2 kinds of parameters in this array - a and b) (here I have N strings)
and another array - DataArray
{data1,data2,...dataN}
(different strings) (here I have N strings)
Now I created 2 new arrays ArrayA and ArrayB and I wanta want to feel arra ArrayA with all data (strings) from DataArray which correspond (by index in array) to a param in ParamsArray. and so strings that correspond to param B should appear in ArrayB.
How to do such thing in actionscript? (Please - I need a code example)