Write a program to show the external ActionScript?
Write a program to show the external ActionScript?
- The code that is created allows the text field with the positions, depth and the screen to be filled up.
- The parameters need to be set up using the following functions:
createTextField("hello", 0, 0, 0, 100, 100);
hello.text = "Hello, world";
- The external ActionScript can be written using the class files and then describing the dimensions and other parameters related to it.
- The external ActionScript is written as such:
class com.example.Hello extends HelloWorld
{
public function Hello() {}
public function onLoad():Void
{
var txtHello:TextField = this.createTextField("txtHello", 0, 0, 0, 100, 100);
txtHello.text = "Hello, world";
}
}