8 Replies Latest reply on Sep 25, 2011 7:27 AM by Francisc

    Accessing private static var inside its own class

    Francisc Level 3

      Hello,

       

      Given this:

       

      public class MyClass

      {

           private static var test:String="Hello";

           public static function test():void

           {

                test="Goodbye";

           }

      }

       

      Should that be MyClass.test="Goodbye";? Or just test=... is correct? Or it's the same in AS, doesn't matter?

       

      Thank you.