You're a hundred percent correct. I must have been pulling some other 
shenanigans when I had the compiler cranking at me when I tried that about a 
year ago...sorry for the misinformation.

-mark hawley

> 
> From: "Yotam Laufer" <[EMAIL PROTECTED]>
> Date: 2006/06/27 Tue PM 12:53:25 CDT
> To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
> Subject: Re: RE: [Flashcoders] init TextFormat prop in a class
> 
> > BTW, you also can't do this:
> > class MyClass
> > {
> >     private static var kMyState:String = "value"; // good
> >     private static var kMyInitialState:String = kMyState; // bad
> > }
> >
> > You've have to write
> >     private static var kMyInitialState:String = "value";
> > in order to get the compiler to allow this.
> >
> > -mark
> 
> I don't think you are correct on that one.
> 
> class a {
>       private static var kMyState:String = "value";
>       private static var kMyInitialState:String = kMyState;
>       static function echo() {
>               trace(kMyInitialState);
>       }
> }
> 
> b = new a();
> a.echo();
> 
> // outputs: value
> 
> It works well.
> 
> Regards, Yotam.
> _______________________________________________
> 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
> 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

_______________________________________________
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

Reply via email to