0 Replies Latest reply on Jun 9, 2009 6:56 AM by DigitalSpeciaist

    States in Flex 4 SDK

    DigitalSpeciaist Level 1

      I am simply copying the example code from the adobe link below, and I paste it in Flex 3 IDE (using the Flex 4 SDK), but the I am getting this error:
      "Could not resolve <mx:Application> to a component implementation"

       

       

      This is the code I copied:

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

      <mx:Application xmlns:mx="library:ns.adobe.com/flex/halo"

         xmlns:m="http://ns.adobe.com/mxml/2009" layout="absolute">

          <m:states>

              <m:State name="default"/>

              <m:State name="newTextInput"/>

          </m:states>

          <mx:VBox>

              <mx:CheckBox label="One" />

              <mx:TextInput includeIn="newTextInput"/>

              <mx:CheckBox label="Two" />

              <mx:Button id="button" label="Click" click="currentState='newTextInput'" />

          </mx:VBox>

      </mx:Application>

       

       

      This is the link:
      http://opensource.adobe.com/wiki/display/flexsdk/Enhanced+States+Syntax