LukewarmSteak
07-18-2009, 01:56 PM
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?
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?