State
имеет свойство stateGroups
, то есть Array of String
:
var n:int = states.length;
for (var i:int = 0; i < n; i++)
{
var state:State = states[i];
if (state.name == currentState)
{
trace("Current state (" + currentState + ") state groups: " + state.stateGroups);
break;
}
}