2 Replies Latest reply on Nov 8, 2006 2:55 PM by Slafon

    Using components in actionscript project

    Slafon
      Sorry if my question sounds dumb, but I just started learning AS3.
      I'm trying to use UI components in an ActionScript project.
      I can't import the definition of mx.controls classes such as Button or CheckBox.
      Here's the code I'm using:

      package {
      import mx.controls.Button;
      public class Learning {
      public function Learning() {
      var button:Button = new Button();
      }
      }
      }

      When I compile, this is what I get: "Definition mx.controls:Button could not be found."

      How to import these definitions?

      -S