How can i access a variable or change the state of an element(like tabNavigator) from one mxml to another mxml?
问题 How can i access a variable or change the state of an element(like tabNavigator) from one mxml to another mxml in FLEX 4.6?? 回答1: Each separate MXML file should be viewed as a class, since that is what they are. In the theory of encapsulation; two classes should not directly access / change each others variables or state. They should use an API provided by the developer of the MXML Class. If MXML 1 is the parent of MXML 2; then MXML1 can pass data to MXML2 by setting public properties or