4 Replies Latest reply on Mar 23, 2010 7:01 PM by PK_HP

    Using Array in Flashbuilder 4 Beta

    PK_HP

      Hi,

       

      I am a Beginner in Flex and As per the Video Session - 6 (Binding Data between controls), I tried creating an Array as following

      <mx:Array id="statesarray">

           <mx:String>State1</mx:String>

           <mx:String>State2</mx:String>

           <mx:String>State3</mx:String>

           <mx:String>State4</mx:String>

      </mx:Array>

       

      But FlashBuilder is throwing and error and is not allowing me to run the application.  I use SPARK container and version 4.0 for compiler.

       

      Could anyone help me on this?

       

      Regards

      PK

        • 1. Re: Using Array in Flashbuilder 4 Beta
          devJT1

          It sounds like you are running through the Flex 3 exercises while trying to use Flash Builder 4. This will not work, since Spark components were not introduced until Flash Buiilder 4. If you set the Flex compiler within Project Properties to use a specific SDK of Flex 3.5, then you should not get an error.

           

          Hope this helps.

          Jeff

          • 2. Re: Using Array in Flashbuilder 4 Beta
            PK_HP Level 1

            Jeff,

             

            You are right.  I am using FlashBuilder 4.0 and was trying out the video tutorials that belong to 3.0.  But could you help me to populate a Simple Combobox in FlashBuilder 4.0?  Also the mx components are supposed to be compatible with the higher version of FB4.0?

            • 3. Re: Using Array in Flashbuilder 4 Beta
              e2dev Level 2

              If you must use Flex 3 but want to use Flash Builder 4, you can choose the 3.5 SDK when you create a project in Flash Builder, and you will be building a Flex 3 project and all the old videos should work for you.

               

              If you want to use Flex 4 and Flash Builder 4, then I suggest you learn from the Flex 4 and Flash Builder 4 videos (http://www.adobe.com/devnet/flex/videotraining/). That way there won't be any confusion between the old and new versions.

               

              You can download the solution files for any of the exercises. The one called "Adding data to your application" will help you populate a DropDownList control. HTHs.

              • 4. Re: Using Array in Flashbuilder 4 Beta
                PK_HP Level 1

                Hi Jeff,

                 

                Thanks a lot.  It really helps.  I was unaware on the Flashbuilder 4 Video tutorial availability.

                 

                Regards

                PK