Or even just a function.. public function updateDisplay(str:String):Void{ Field1.text = str; Field2.text = str; Field3.text = str; }
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin Sent: Thursday, December 08, 2005 12:05 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Display same value in 3 fields Will something like this work? Not the best solution im sure but it gets the job done! ;) for(i=1;i<totalFields;i++){ this["Field"+i].text = "OK"; } Mike Boutin Juicy Studios Pranav Negandhi wrote: >Bit of a glitch. I need to display the same value in 3 different locations >and was wondering if it's possible to do it in any way other than setting >values in 3 text fields. > >What I'm doing right now - >Field1.text = "OK" >Field2.text = "OK" >Field3.text = "OK" > >What I'd like to do - >GlobalField.text = "OK" >[change propogates to 3 instances of the movieclip] > >I played around a bit with static class variables and feel it might be the >right way. Any pointers anyone? > >Regards, >Pranav Negandhi > >Fractal | ink >O: 91 22 5660 3682 >M: 91 98211 73656 >www.fractalink.com > >_______________________________________________ >Flashcoders mailing list >Flashcoders@chattyfig.figleaf.com >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders