2 Replies Latest reply on Oct 14, 2010 12:24 AM by stigbn

    Using mx components in Action Script project in Flash Builder

    stigbn Level 1

      Hi

       

      I have created an Action Script project in flash builder 4 and want to use a mx.controls.button.

       

      The as file looks like this:

       

      package
      {
          import flash.display.Sprite;
          import mx.controls.Button;
          public class as_test_project extends Sprite
          {
              public function as_test_project()
              {
                  var btn:Button = new Button();
                  btn.label = "test";
                  addChild(btn);

       

              }
          }
      }

       

      I have added C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\src as a Source Path in the project settings. I have also added framework.swc to the library path.

       

      I still get errors like :

       

      Description    Resource    Path    Location    Type
      Unable to resolve resource bundle "core" for locale "en_US".    as_test_project        Unknown    Flex Problem

       

       

      Have then tried added various Bundles folders like

       

      C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\bundles

       

      to the source path and library path, but I still get the errors.

       

      WHAT IS THE CORRECT WAY OF USING MX COMPONENTS IN A PURE ACTION SCRIPT PROJECT ?

       

      If I want to use th fl.controls componets instead but dont have CS3 where can I download them ?