Re: RE: [Flashcoders] init TextFormat prop in a class

2006-06-27 Thread John Mark Hawley
06/27 Tue PM 12:53:25 CDT > To: "Flashcoders mailing list" > Subject: Re: RE: [Flashcoders] init TextFormat prop in a class > > > BTW, you also can't do this: > > class MyClass > > { > > private static var kMyState:String = "v

Re: RE: [Flashcoders] init TextFormat prop in a class

2006-06-27 Thread Yotam Laufer
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. -mar

Re: RE: [Flashcoders] init TextFormat prop in a class

2006-06-27 Thread John Mark Hawley
e static var kMyInitialState:String = "value"; in order to get the compiler to allow this. -mark > > From: "Mendelsohn, Michael" <[EMAIL PROTECTED]> > Date: 2006/06/27 Tue AM 11:55:41 CDT > To: "Flashcoders mailing list" > Subject: RE: [Flashcoders]

RE: [Flashcoders] init TextFormat prop in a class

2006-06-27 Thread Mendelsohn, Michael
Thanks, Mike and John for your responses. John: what do you mean by primitives? - MM > Class properties can only be initialized with primitives outside of a constructor ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or sear

Re: [Flashcoders] init TextFormat prop in a class

2006-06-27 Thread mike . keesey
Quoting "Mendelsohn, Michael" <[EMAIL PROTECTED]>: Hi list... Why is it that when I try to init a prop for my class, I get this error: "A class's instance variables may only be initialized to compile-time constant expressions." What exactly does that mean? class test{ private var tf:Te

Re: [Flashcoders] init TextFormat prop in a class

2006-06-27 Thread John Mark Hawley
initalization of properties should occur either in a constructor or within an initialization function. > > From: "Mendelsohn, Michael" <[EMAIL PROTECTED]> > Date: 2006/06/27 Tue AM 11:04:27 CDT > To: "Flashcoders mailing list" > Subject: [Flashcoders] ini

[Flashcoders] init TextFormat prop in a class

2006-06-27 Thread Mendelsohn, Michael
Hi list... Why is it that when I try to init a prop for my class, I get this error: "A class's instance variables may only be initialized to compile-time constant expressions." What exactly does that mean? Thanks, - Michael M. class test{ private var tf:TextFormat = new TextFormat();