Action Script Question:

Download Job Interview Questions and Answers PDF

How to write a program to show the external ActionScript?

Action Script Interview Question
Action Script Interview Question

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 Interview Questions And Answers PDF

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?