How to create multiple arrays from 2? (actionscript, flash)

Posted by Ole Jak on Stack Overflow See other posts from Stack Overflow or by Ole Jak
Published on 2010-04-29T23:17:17Z Indexed on 2010/04/29 23:27 UTC
Read the original article Hit count: 137

Filed under:
|
|
|
|

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)

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about flash