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:State name="default"/>

              <m:State name="newTextInput"/>



              <mx:CheckBox label="One" />

              <mx:TextInput includeIn="newTextInput"/>

              <mx:CheckBox label="Two" />

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





      This is the link: