Static variables are not inheritable in Flex, you need to access then with same 
class as they wre declared in which in your case is :  ClassA.





----- Original Message ----
From: whatabrain <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, August 4, 2008 6:05:14 PM
Subject: [flexcoders] Flex class inherritance problem


I create ClassA that extended Object. Inside, I declared some static 
variables. No problem. Then I create ClassB that extends ClassA, and I 
give it some static variables. I get the following error:

1119: Access of possibly undefined property staticEventDispatch er 
through a reference with static type Class.

Why does this happen? Shouldn't a grandchild of Object have the same 
properties as a child of Object?

    

Reply via email to