Let me rephrase my question. I've used Macromedia (Adobe?) Director for
several years before jumping ship to Flash. There, field members are placed
in the cast, and changing value in one place automatically updates values in
all sprite instances.

E.g. member("message").text = "OK" [updates all sprites where the member
"message" has been placed]

I wanted to do something similar in Flash, and possibly put it into my code
library for future reuse, which is why I'm exploring a more OO solution.

Thanks for inputs people.

Regards,
Pranav Negandhi

Fractal | ink
O: 91 22 5660 3682
M: 91 98211 73656
www.fractalink.com


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Robert Chyko
> Sent: Thursday, December 08, 2005 10:40 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Display same value in 3 fields
> 
> 
> 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
> >[email protected]
> >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >  
> >
> 
> _______________________________________________
> Flashcoders mailing list
> [email protected] 
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> _______________________________________________
> Flashcoders mailing list
> [email protected] 
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to