[RESOLVED] trying to access variable...
hey! i'd like to access a variable in an associated class from my Document class
document class - (index)
package{
class index...{
public static var somevar:Boolean = false;
public function index....{
if (somevar !== false) {
trace (somevar);
}
}}}
other class - (otherclass)
package {
class otherclass...{
public static var somevar:Boolean;
public function otherclass {
somevar = true;
trace (somevar);
}}}
- in my document class im trying to see if the class has changed the variable... if it has changed i'd like to obviously do something... if this isn't possible what's the simplest way to check a variable in another class?