Using "this" - or not? Accessing properties of a member of a class from within the class.
I have a class, call it MyClass, and there are several variables that I need to be able to access each instance of from within the class.
So for instance, I need the object myObject1, a member of MyClass, to store the variable myNumber.
From the main timeline, if I trace myObject1.myNumber, I get whatever number I've stored.
However, I need to check the numbers against another parameter, so I need to be able to test if myObject.myNumber == myOtherNumber. But from within the class, if I trace this.myNumber or myNumber I get null.
What is the proper syntax for accessing a variable within a class?