Action Script Question:

Download Job Interview Questions and Answers PDF

Do you know what does reference means in ActionScript?

Action Script Interview Question
Action Script Interview Question

Answer:

- Reference is a pointer in the ActionScript that defines the instance of a class to be called using different objects.

- The ActionScript reference doesn’t create any copy of the instance but it allows the accessing to be made of the same memory space.

- ActionScript references are made up of objects and not copied to be used with other services.

- The example of it is as follows:
var item1:XML=new XML("<node><child/></node>");
var item2:XML=item1;
item2.firstChild.attributes.value=13;

Download Action Script Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me what are the different ways in which the variables can be assigned?Can you explain what are the differences between JavaScript and ActionScript?