var dtd;
var spa;
var spa1;
var dt = 0;
while (dt<=9) {
dtd = "var"+dt;
spa = dt*5;
spa1 = (dt*15)+45;
var t = _root.createTextField(dtd, dt, 0, spa1, 100, 15);
trace(t);
dtd=eval(dtd)
//or use t var, t.text=""
dtd.text = spa1;
dtd.border = true;
dtd.selectable = false;
dt++;
}

you were trying to reference the textField vi 'dtd' variable which is string, name for textField

not evaluated as variable yet

Martin



---- Original Message ----- From: "Laurent CUCHET" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Wednesday, March 22, 2006 4:37 PM
Subject: [Flashcoders] >> while


Good morning,

1) I  create dynamic textfield with while option
   I try to create dynamic border and content without success

Have you got a tips to done it

Thank you

/////////////////////////////
var dtd;
var spa;
var spa1;
var dt = 0;
while (dt<=99) {
   dtd = "var"+dt;
   spa = dt*5;
   spa1 = (dt*15)+45;
   _root.createTextField(dtd, dt, 0, spa1, 100, 15);
   dtd.text=spa1;
   dtd.border=true;
   dtd.selectable=false;
   dt++;
}



_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

Reply via email to