i’m importing data into a custom flash component, but the values i’m passing as arrays are being interpretted as strings, not arrays.
the data i’m using comes originally from an xml document. all of the info is stored in one array and, once loaded into the flash movie, i parse the array values and assign them to the variables i wish.
on my main stage, i have a data object holds all of my variables and values that get passed into the component.
mychartData={
arrXPixelRange:bar_array[0],
…
}
as i mentioned, the variables are assigned values from the original xml document – which were passed in the array called bar_array.
the above value should be equivalent to
arrXPixelRange:[0,189]
however, once inside the component, the value of “[0,189]” appears to function as a string, not an array. the strange is that, when i was hard coding the values (instead of using data from the xml document), it worked great. now that there is the extra step of importing the data from the xml doc and parsing out an array, it doesn’t work.
anyone ever have this problem? please let me know if you have ideas.