I am using code behind for my component and everytime i add <states> tag i get the following error
Initializer for property 'states' is not allowed here.
If I move the code all the way to the top level container i get this error
Could not resolve <mx:states> to a component implementation.
could you post your code?
I think position at where you are adding <mx:States is wrong...
Try to add at
<mx:Script... /> if any
<mx all other tag
Hope this structure will help you.