PDA

View Full Version : 1202: Access of undefined property


angerbee
02-10-2009, 04:42 PM
I have seen posts about this that give no, or vague answers that do not apply. I am running CS3 and when I run this code, I get a 1202 error on about 5 const vars I have at the top of the class:

package {
public class myLayerManager {
const MAX_LAYERS:uint=0;

rawmantick
02-11-2009, 05:34 AM
package
{
public class MyLayerManager
{
static public const MAX_LAYERS:uint=0;

1. This one will work for sure
2. Always name classes with capital letter using camel notation. For the opinion like "it's not required. I don't have to name classes by some convention" - Yes, you do have to.