all groups > flash data integration > march 2005 >
You're in the

flash data integration

group:

Passing value to Array


Passing value to Array pooknikk
3/4/2005 7:17:00 AM
flash data integration:
If I've got x = "test5"
How can I put the value of x to Array

list=["test1","test2","test3","test4"];

I'd try to use ---> list=[x,"test1","test2","test3","test4"] but is not work.
Re: Passing value to Array Sivakanesh
3/4/2005 2:11:05 PM
Well I just run you code and it works fine.

var list = new Array();
x = "test5";
list=["test1","test2","test3","test4"];
list=[x,"test1","test2","test3","test4"] ;
trace(list[0]);
trace(list[1]);
trace(list[2]);
trace(list[3]);
trace(list[4]);

Can you elaborate on your error a bit more?
AddThis Social Bookmark Button