PDA

View Full Version : [MX] my swf can load only locally ... :(



Deril
November 5th, 2002, 01:12 AM
Hello,

I am confuzed agein. I bilding a simple code fo xml handing..

2: I use a big number of fields...
_root.f1
_root.f2
_root.f3
_root.f4
_root.f5

.... can I place it in loop somehow.... like
for (i=1;i<6;i++){
_root.fi = somthing[i];
}

well this dosent work.. but I hope you got the point.

? How to put varieble in _root.f1?


.. thanks for your time.:(

PS:
hm.. so little visits.. is it the word XML that scares you.. strange.. in fact. XML is much easer then HTML.. you dont have to learn tags.. or atributes. you make them up.. but I am out of topic

XemonerdX
November 5th, 2002, 06:41 AM
To answer yer 2nd question, use this loop:


for (i=1;i<6;i++){
_root["f"+i] = somthing[i];
}

Deril
November 5th, 2002, 02:13 PM
:) thanks XemonerdX this will save me a lt of hand work..