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


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to