Every now and then I get an error when I set up states in an MXML file. The error I get says that mx:states could not be resolved to a component implementation.
I read, at the following url, that this issue is caused by extending components - that somehow throws off the compiler's ability to resolve mx:states. I don't see why this should be the case, but I don't have any answer of my own. I also can't necessarily make this approach work with all of my extended components.
http://life.neophi.com/danielr/2007/01/could_not_resolve_to_a_compone.html
The workaround I've come up with is to not use any namespace. So, my code then looks like this:
<states>...</states>
rather than:
<mx:states>...</mx:states>
Making this stranger (at least, to me) is the fact that the children of the tag - - does not have this issue. mx:states can not be resolved, but its child mx:State can. And mx:SetProperty - a child of mx:State - is also resolved.
Can anyone explain this, and/or offer a better solution to the problem than what I've come up with?
Incidentally, I see the same issue with mx:transitions.