I am learning OOP and have a question. On my stage I added a dynamic text field with instance name “test”. In my class I have the following:
package {
import flash.display.MovieClip;
public class Main extends MovieClip {
public function Main() {
trace("Flash");
test.text = "Flash";
}
}
}
I get an output error 1046: Type was not found or was not a compile-time constant: TextField.
What am I doing wrong here?