I have two classes in Actionscript 3. I am using FlashBuilder 4.6. The SDK is 3.6A. The two classes are in a separate library. This library is referenced in the Active project.
My first (base) class is:
public class BaseDTO
{
public var errorCode:int;
public var errorMessage:String;
public function BaseDTO()
{
}
}
The second (derived) class is:
public class Configurations extends BaseDTO
{
}
In my active project (non-library), I am calling Configurations like this:
var c:Configurations = new Configurations();
c.errorCode = 0;
there are two references in two separate classes. Now the problems is that in first class which is basically a creationComplete handler of the application, I am getting a compile time error:
1119: Access of possibly undefined property errorCode through a reference with static type dto.configs:Configurations.
And the other class which is calling the same code is throwing a runtime exception:
ReferenceError: Error #1056: Cannot create property errorCode on dto.configs.Configurations.
I am not sure if I have explained it enough. Let me know if there are any other questions. I have been banging my head now for couple of hours now.
I have tried to create a new project, tried to use the same code to reference the configuration, and it works. Extremely strange.
Any Idea?