also, bear in mind that prior to flash 8, createTextField returned nothing, so following on from Dannys:
_root.createTextField(dtd, dt, 0, spa1, 100, 15); dtdObj = _root[dtd]; dtdObj.text=spa1; dtdObj.border=true; dtdObj.selectable=false; On 3/22/06, Danny Kodicek <[EMAIL PROTECTED]> wrote: > > > 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++; > > } > > You got loads of answers to this already, but anyway: dtd is a string. If > you want to refer to it as an object reference, try > > dtdObj=_root.createTextField(dtd, dt, 0, spa1, 100, 15); > dtdObj.text=spa1; > dtdObj.border=true; > dtdObj.selectable=false; > > > Danny > > _______________________________________________ > 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