Array

How would one go about loading an external array into flash?

from where? You can create arrays from loaded text files etc… Just wondering where you will be pulling your array from?

I will be pulling the array from an asp file on a server.

TO load variables threw Asp file in flash u can use

loadVariables(“data.asp”, _level0);

but i dont have idea how to get array variable threw asp.

have asp output the array as a delimited string then use String.split() to parse the string into an array.

say it was string “arrayString” delimited by “:”:


loader = new LoadVars();
loader.onLoad = function(){
   _root.importedArray = this.arrayString.split(":");
}
loader.load("gimmeThatString.asp");

Thanks, works great.

If you have some time take a look at my post called “parse of the array”

Its the next step.