AS3: global var of type SimpleButton changes to DisplayObject for unknown reason, won't let me access .upState.textColor!
问题 This is a problem that's best explained in code. I don't see how active_button.upState , which I know is a TextField (see trace statements), mysteriously turns into a DisplayObject when I try to access the textColor property. I've included the error messages below for reference. Also, why is it that when I have an object that I know is a SimpleButton (again, see traces) I need to cast it to SimpleButton in order to store it in a var? That doesn't make any sense to me. All help is much