Get rid of the extra period
>> _root.mainMC.auto.subMC.["textField"+i].text =
^
^
>> _root.mainMC.auto.subMC["textField"+i].text =
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:flashcoders-
>> [EMAIL PROTECTED] On Behalf Of Bill Pelon
>> Sent: Thursday, October 19, 2006 5:33 PM
>> To: Flashcoders mailing list
>> Subject: Re: [Flashcoders] incrementing a target?
>>
>> Seems to jumble me up a bit, I get this error.
>>
>> Expected a field name after '.' operator.
>> _root.mainMC.auto.subMC.["textField"+i].text =
>> turbo.attributes.name;
>>
>> thanks though...
>>
>>
>>
>> ----- Original Message -----
>> From: "Glen Pike" <[EMAIL PROTECTED]>
>> To: "Flashcoders mailing list" <[email protected]>
>> Sent: Thursday, October 19, 2006 3:16 PM
>> Subject: Re: [Flashcoders] incrementing a target?
>>
>>
>> > Erm, I think you might want to try
>> >
>> > _root.mainMC.auto.subMC["textField" + i].text
>> >
>> > Not sure.
>> >
>> > Bill Pelon wrote:
>> >> Hello,
>> >>
>> >> I'm having problems figuring out how to grab an array value and
use
>> that
>> >> when targeting.
>> >>
>> >> This is my fucntion below. What I am wanting to do is take the
>> [i]value
>> >> and be able to use that when trying to write to my textfields
>> >>
>> >>
>>
////////////////////////////////////////////////////////////////////////
/
>> ///////////////////
>> >> function ExpandData(turbo){
>> >>
>> >> var turboItem = turbo.firstChild.childNodes;
>> >> for (var i = 0; i < turboItem.length; i++){
>> >> but = eval("but"+i);
>> >> var turbo = turboItem[i];
>> >>
>> >> _root.mainMC.auto.subMC.txtField+i.text = turbo.attributes.name;
>> >>
>> >> }
>> >>
>> >> }
>> >>
>>
////////////////////////////////////////////////////////////////////////
/
>> //////////////
>> >>
>> >> Thanks,
>> >> Bill
>> >>
>> >>
>> >> _______________________________________________
>> >> [email protected]
>> >> 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
>> >>
>> >>
>> > _______________________________________________
>> > [email protected]
>> > 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
>>
>> _______________________________________________
>> [email protected]
>> 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
_______________________________________________
[email protected]
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