Chapter: Internet & World Wide Web HOW TO PROGRAM - Rich Internet Application Client Technologies - Adobe Flash CS3: Building an Interactive Game

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail

Object-Oriented Programming

ActionScript 3.0 is an object-oriented scripting language that closely resembles JavaScript.

Object-Oriented Programming

 

ActionScript 3.0 is an object-oriented scripting language that closely resembles JavaScript. The knowledge you gained from the JavaScript treatment in Chapters 6–11 will help you understand the ActionScript used in this case study.

 

An ActionScript class is a collection of characteristics known as properties and behav-iors known as functions. You can create your own classes or use any of Flash’s predefined classes. A symbol stored in the Library is a class. A class can be used to create many objects. For example, when you created the rotating-book movie clips in the preloader exercise in Chapter 16, you created a class. Dragging a symbol from the Library onto the stage created an instance (object) of the class. Multiple instances of one class can exist on the stage at the same time. Any changes made to an individual instance (resizing, rotating, etc.) affect only that one instance. Changes made to a class (accessed through the Library), however, affect every instance of the class.


Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail


Copyright © 2018-2020 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.