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
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
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]
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
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
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
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();
7 matches
Mail list logo