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.
something like:
var _lv:LoadVars = new LoadVars();
_lv.load(FlashMenuLoader.asp);
var my_array:Array;
_lv.onLoad = function ()
{
mm_array = mivariable.split(",");
trace(mm_array);
}
Haven't tested that, but you'll get the basic idea.
Hope that helps.
--
Arul Prasad
http://arulprasad.blogspot.com
--------------------------------------------------------------------------------------------------------------
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
Funds",
"Perfomance", "Client Services"];
Now I want to load those values from an .asp file. My asp returns a string
like:
mivariable=Corporate, Fund of Funds, Single Manager Funds, Perfomance,
Client Services
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
http://www.blumer.com.ar
_______________________________________________
[EMAIL PROTECTED]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com