1 Reply Latest reply on Feb 26, 2010 10:01 AM by CoreyRLucier

    states changes from Beta 2 to latest nightly build

    franto kormanak Level 1

      is there any changes in "states" from Beta 2 to latest nighly build. I've big app, which was implemented for Beta2 and now im trying to update it to the latest nightly build.



      from what I've found out till now (except some component renaming, properties renaming) is


      - colorizeExclusions doesnt work (or work in different way)

      - focusOut work differently (same focusOut are not fired which was fired in Beta 2)


      - components with customStates with state "normal" and binded currentState is not binded at the start. I don't know how to described, but it's not changed at the start with binding. I need to change to another state and then back and it works




      <s:State name="normal"/>

      <s:State name="start"/>

      <s:State name="second"/>



      if currentState is binded to some variable (currentState="{myState}"/> and myState is set to "start" at the start, component didnt chante it state...


      Does anyone has similar problem?



        • 1. Re: states changes from Beta 2 to latest nightly build
          CoreyRLucier Adobe Employee



          This seems to work in the trunk.


          Whatever you are binding 'currentState' to..make sure it's 'bindable' such that it propogates to currentState properly regardless of the order of initialization?




          <?xml version="1.0" encoding="utf-8"?>

          <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"











                      private var myStartState:String = "s2";




                  <s:State name="s1"/>

                  <s:State name="s2"/>

                  <s:State name="s3"/>


              <s:VGroup >

                  <s:Button label="default" label.s2="state two"/>