Re: [Flashcoders] Passing TextField Instance Name to Function

2006-05-22 Thread Brandon Krakowsky/MTC
12:07 PM Please respond to Flashcoders mailing list To Flashcoders mailing list cc Subject Re: [Flashcoders] Passing TextField Instance Name to Function Here's another... Using your movieclip path I have this working... function setTextColor(formatName, fieldClip, col, ali

Re: [Flashcoders] Passing TextField Instance Name to Function

2006-05-22 Thread Gerry Creighton
Here's another... Using your movieclip path I have this working... function setTextColor(formatName, fieldClip, col, align) { formatName = new TextFormat(); formatName.color = col; formatName.align = align; fieldClip.setTextFormat(formatName); } leftInfoClip.topLeftT

Re: [Flashcoders] Passing TextField Instance Name to Function

2006-05-22 Thread Gerry Creighton
I just created three textfields on the stage and named them fieldClip, fieldClip1 and fieldClip2. The following rewritten code of yours worked fine. Is this what you were trying to accomplish? Gerry function setTextColor(formatName, fieldClip, col, align) { formatName = new TextForm

[Flashcoders] Passing TextField Instance Name to Function

2006-05-22 Thread Brandon Krakowsky/MTC
Hello all. This is probably very simple. I'm trying to pass the instance name of a textfield to a "setTextColor" function which applies a TextFormat. The function takes 4 parameters, the new format name, the textfield instance name, the textfield color, and the textfield alignment. Everythi