3 Replies Latest reply on May 25, 2010 5:46 PM by GordonSmith

    A problem with accessing the public variable inside the function




      I have got this package and I get error 1120: 1120: Access of undefined property aa


      Could you explain why I get this error?




      package somepackage {
          import flash.display.DisplayObject;
          import mx.containers.Canvas;
          public class SoundPictureSigns extends Canvas {
              public var aa:int = 12;


              public function SoundPictureSigns():void {


              public static function setUpSignSizes():void {
                  trace("aa="+aa); /// ERROR here: 1120: Access of undefined property aa



      Can you help?