Action Script Question:

How to write a program to show the external ActionScript?

Tweet Share WhatsApp

Answer:

- 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";
}
}

Download Action Script PDF Read All 20 Action Script Questions
Previous QuestionNext Question
Do you know what are the different primitive data types used in ActionScript?Explain what are the data types supported by ActionScript?