I am fairly new to AS3/Flex and would like your help with an
issue I am having. I am implementing a Flex 2 project that uses two
custom components in different states (i.e. State 1 uses component
A. State 2 uses component B). In these two components, they are
referencing the same XML object that is specified in a seperate
file (i.e. Global.as) that is included in the main application
Here's my problem. If I switch between the two states making
changes to the XML object, these changes are not shown in the
states unless I force a new databind() by setting the dataprovider
to the updated XML object. I could just do this everytime the user
switches the state, however, I don't think this is an efficient way
to solve the problem.
I was wondering if you guys could help me find a better way
to solve this problem. Could we set an event that triggers the
reseting of the XML databind ONLY when the XML object is changed?