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.
_______________________________________________
[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

Reply via email to