Objects are the most important components in Flas ActionScripting. They are basically complex values containi additional values or variables known as properties. An object c be created by using the new operator. The following code creates new object instance.

// Creating a new object instance

var myValue:Object = new Object();
personl = new Object();

The above code creates two object instances, called myVal and personl.

Name:  Programming Fundamentals - Creating Objects.jpg
Views: 35
Size:  22.1 KB