3 Replies Latest reply on Apr 5, 2007 1:21 PM by feef10

    Can't access public static members from a sub-class?

    feef10
      Try this:

      // File ParentClass.as
      public class ParentClass { public static var astring:String = 'I am a string.'; }

      // File: ChildClass.as
      public class ChildClass extends ParentClass { }

      // File: mail.mxml (snippet)
      trace(ChildClass.astring);

      -- What do you expect?

      I got compilation error: "Access of possibly undefined property astring through a reference with static tyep Class."

      My Flex SDK is 2.0.1.