Well I tried your code in flex sdk 4.6 and could not include mx:states as it
is deprecated.
But replacing ms:states with s:states works like a butter.
Please refer to the code below:
?xml version=1.0 encoding=utf-8?
s:Application xmlns:fx=http://ns.adobe.com/mxml/2009
Set/assign the state( currentState=Oct2010 ) inside creationComplete
handling method.
Ex.
protected function
application1_creationCompleteHandler(event:FlexEvent):void
{
// TODO Auto-generated method stub
this.currentState = Oct2010;
}
May be all the states might have not laid-out while
In that example he has mentioned like bellow.
s:states
mx:State id=Oct2010 name=Oct2010/
mx:State name=Oct2011/
mx:State name=Apr2012/
/s:states
WORKS
*but not this one*
mx:states
s:State id=Oct2010 name=Oct2010/
s:State name=Oct2011/
/MdsClientBeta1/src/sections Flex Problem
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf
Of Tandon, Rishi
Sent: Tuesday, February 07, 2012 4:35 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 3 - 4 migration and s:States
Well I
4 matches
Mail list logo