Why the actionscript 3.0 snippet below failed to import Button and TextInput?
- by user198729
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?