I'm trying to work with states and having some difficulty.
Here is my state code in the MXML:
<mx:states>
<mx:State name="details">
<mx:SetStyle target="{dgCorpMoveSummary}" name="visible"
value="0"/>
<mx:SetStyle target="{btnBack}" name="enabled" value="1"/>
</mx:State>
</mx:states>
I get no errors when compiling.
The following function is executed:
public function getMovesResult(e:ResultEvent):void
{
txtTitle.text = 'Moves against ' + e.result[0].PRMLNAME;
currentState = 'details';
Alert.show(currentState, 'Current State', Alert.OK);
}
The alert shows the current state is "details" but the datagrid is still
visible, and the button is dstill disabled.
Everything looks fine in flex builder's design mode when I switch
states, so I don't understand why it isn't working when I run the app.
Rick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:3210
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37