  | |  | external list and array description | external list and array description 2005-09-22 - By eric choisy
Back hi
well, i'm trying to use an external text file with a formated string like that
valeurs=tableMenu[1] = []&tableMenu[1].titre = "S?curit?"&tableMenu [1].nom = "m_1"&tableMenu[1].menu = []&tableMenu[1]["menu"][1] = [];
these vars describe an associative array "tableMenu" and would like to create it by parsing the file...
some think like that : for (var i= 0; i<myLoadVars.length; i++) { _global["g"+i] = this[i] }
but it doesn't "eval" the firs argument as an "instruction to fill the array.
hope i'm clear
best regards
eric-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- send message to the list: mailto:flashpro@(protected) [FlashPro] list info, subscribe, archive: http://flash-list.com/ There's also a WebPro mailing list: http://webdesign-list.com/ cutting-edge sounds for flash: http://flash-sounds.com/
Earn $52 per hosting referral at Lunarpages.
|
|
 |