Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
external list and array description

external list and array description

2005-09-22       - By elusive

 Back
Reply:     1     2  

you could put your vars into the text document like this:
valeurs="value1_value2_value3"
and after loading it create the arrey like this:
_global.my_array=new Array()
_global.my_array= valeurs.split("_")

hope this helps

elu
Am 22.09.2005 um 11:25 schrieb eric choisy:

> 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/
>

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
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.