Action Script Question:
Do you know what does reference means in ActionScript?

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;
- 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;
Previous Question | Next 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? |