Looks like you are not waiting for the data to be loaded into your SWF
before you split.
Try using LoadVars and wait for the onLoad event, and then do a split.
var _lv:LoadVars = new LoadVars();
_lv.onLoad = function ()
mm_array = mivariable.split(,);
Haven't tested that, but you'll get the basic idea.
Hope that helps.
On 4/12/07, Claudio M. E. Bastos Iorio [EMAIL PROTECTED] wrote:
Sorry for the question, I found some examples on google but I still cannot
figure out what's worng with my code. I hope you guys can help me.
My original array was:
var mm_array:Array = [Corporate, Fund of Funds, Single Manager
Perfomance, Client Services];
Now I want to load those values from an .asp file. My asp returns a string
mivariable=Corporate, Fund of Funds, Single Manager Funds, Perfomance,
So, Im trying this:
loadVariablesNum(FlashMenuLoader.asp, 0, GET);
var mm_array = mivariable.split(,);
But I'm getting an undefined value. What's wrong?
Thanks in advance.
Claudio M. E. Bastos Iorio
To change your subscription options or search the archive:
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training