It took me four times getting burned by not declaring a class as public
before I started doing it. The error isn't exactly clear, either, which
makes it even tougher. I don't think you need to go back to the drawing
board, but you might need to get zapped by it a couple of times until it
You're attempting to access instance vars in a static method. Make
min_num and max_num static.
Also, you don't need to put a constructor in a static class.
Also, you should follow common practice and put public before static
when declaring functions and variables.
: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Error 1120?
You're attempting to access instance vars in a static method. Make
min_num and max_num static.
Also, you don't need to put a constructor in a static class.
Also, you should follow common
) {
//return (num1 - num2 )/ 2;
}
}
}
Date: Wed, 9 Jan 2008 18:35:18 -0800
From: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Error 1120?
You're attempting to access instance vars in a static method. Make
min_num and max_num static.
Also, you
It worked..
Guys you have no idea how much I appreciate your assistance!
Does that mean that brushing up on the basics of as3 should be in order?
geez..
add public IS important!
Thanks Everyone!!
From: [EMAIL PROTECTED]
Subject: Re: [Flashcoders] Error 1120?
Date: Wed, 9 Jan 2008 23:21
5 matches
Mail list logo