// In MXML 2009 and later, a state's 'overrides' property is implicitly
// determined by the nodes that are dependent on this state.
// We use these nodes to autogenerate runtime IOverride objects
// and set them as the value of the 'overrides' property.
IMXMLClassDefinitionNode classDefinitionNode = stateNode.getClassDefinitionNode();
List<IMXMLNode> nodes = classDefinitionNode.getNodesDependentOnState(stateNode.getStateName());
if (nodes != null)
{
if (!getProject().getTargetSettings().getMxmlChildrenAsData())
{
// Push the State instance on which we'll set the 'overrides' property.