Why the actionscript 3.0 snippet below failed to import Button and TextInput?

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-06-17T13:25:31Z Indexed on 2010/06/17 13:43 UTC
Read the original article Hit count: 173

Filed under:
package
{
    import fl.controls.Button;
    import fl.controls.TextInput;
    public class MinRecord extends Sprite
    {
          private var recordBtn:Button;
          private var stopBtn:Button;
          private var textInput:TextInput;
...

When I run it reports:

Type was not found or was not a compile-time constant: Button.
Type was not found or was not a compile-time constant: TextInput.

Can someone point out what's wrong here?

© Stack Overflow or respective owner

Related posts about actionscript-3