i used play button image within datagrid iteam renderer, if i click image then move to another state (by using currentState ='play') . so i tried like
<mx:DataGridColumn textAlign="center" headerText="" dataField="col2">
<mx:itemRenderer>
<mx:Component>
<mx:HBox textAlign="center" paddingLeft="17">
<mx:Image source="@Embed(source='image/play_button.png')" click="currentState='Playsystem'"/>
</mx:HBox>
</mx:Component>
</mx:itemRenderer>
but it's shows error like undefined state 'Playsystem'. But Already i have state . What did i worng .? Why error shows like this ?