actually this is not new, i think, but just a logic follow up on loading external text. instead of reffering every dynamic textbox to a seperate txtfile, it's easy to do al this with one textfile. if u want to load for example the next lines in 5 different dynamic textboxes:
1.this is line 1 2.this is line 2.......and so one, just give your dynamic tekstboxes the variable:
dynamic textbox 1: externvar1
dynamic textbox 2: externvar2
dynamic textbox 3: externvar3
and so on.
now make a textfile, cal it "dynamic.txt" and put this inside:
&externvar1=this is line 1& &externvar2=this is line 2& &externvar3=this is line 3& and so on... finnaly, put in the root of youre movie the following script:
onFrame (1) { loadVariablesNum("dynamic.txt",0); }
and you will see the five differnet lines in 5 different textboxes. that's all!!
look at the example here here, and download the zipfile here
good luck with it!!
|
|
|