You are currently browsing the monthly archive for October 2007.

Author: Ashwinee Kumar Dash.

Name of the Book: Essential ActionScript 3.0 by Colin Moock

Copyright: Creative Commons License
Disclaimer: Anything in quotation marks is a direct quotation from Essential
ActionScript 3.0
. All other notes are my own summaries of the concepts
presented in the book.

These notes are for reference purpose only and not intended to replace the book .Therefore I would strongly advise you to read the original book as well as make your own notes wherever necessary.

Send your suggestions and feedbacks to aswhineedash[at]gmail[dot]com or aswhinee2004[at]gamil[dot]com.

Static Variables and Methods

  • Static variables are class variables, not instance variables. Static variables do not vary from instance to instance
  • Static keyword defines the variable to be a class variable
  • Four access control modifiers available and they are public, private, internal and protected. These modifiers come before the static keyword.
  • Inside the class static variables can be used as regular variables. But otherwise it has to be accessed by using className.variable.
  • Inside a class a static variable and an instance variable of same names can coexist.
  • Constant is a variable with a value that do not change throughout the program
  • It is defined using the keyword const in stead of var
  • Like static variables, static methods define functionality that relate to an entire class.
  • Static methods cannot use the keyword this.
  • Static methods cannot access instance variables and instance methods of the class where it is defined. quite logical.
  • When ActionScript creates a class at runtime, it creates a method called class initializer and runs it.
  • In the class initializer it places all the static variables and all class level code that is not instance variable or instance method.
  • Every class in ActionScript is represented at runtime as an instance of the Class class.
  • Class objects are primarily used to access static properties and static methods.
  • Like other objects class objects can be used as values for assigning and return type.
Advertisements

Author: Ashwinee Kumar Dash.

Name of the Book: Essential ActionScript 3.0 by Colin Moock

Copyright: Creative Commons License
Disclaimer: Anything in quotation marks is a direct quotation from Essential
ActionScript 3.0
. All other notes are my own summaries of the concepts
presented in the book.

These notes are for reference purpose only and not intended to replace the book .Therefore I would strongly advise you to read the original book as well as make your own notes wherever necessary.

Send your suggestions and feedbacks to aswhineedash[at]gmail[dot]com or aswhinee2004[at]gamil[dot]com.

Classes

  • Classes are the blue prints upon which objects are built.
  • Every object that you see in a program has a class of its own.
  • Classes written from scratch known as custom classes.
  • Built in classes are used to perform some fundamental tasks
  • Classes built directly into ActionScript are known as native classes.
  • Classes are created by using class keyword. Read the rest of this entry »

I would like to thank Colin for allowing me to publish my own notes that I had jotted down while studying his (essential) book aptly titled Essential ActionScript 3.0.

EAS 3.0

In my opinion it is the best book currently available to learn Object Oriented Programming using Actionscript 3.0. The following three categories of readers can benefit from the book

  • those who are new to OOP and AS 3.0 ( they will find it most useful).
  • those wishing to upgrade from AS 2.0 to AS 3.0 will need this book to understand concepts like e4x, display architecture, Flash player security and events and event handling etc.
  • C# or C++ or java developers wishing to use AS 3.0 in their Flex projects won’t find such in depth knowledge and coverage of AS3.0 in any other book.

The importance of AS 3.0 has increased in these days due to quick adoption of Flex and to use Flex to its fullest extent one must know AS 3.0 inside out . When it comes to ActionScript, nobody teaches you the better than Colin Moock.

I, like countless others have learnt a lot about ActionScript and Flash just by reading his books. I hope he continues to write more about ActionScript, a popular language destined to become.

Twitter Updates

October 2007
M T W T F S S
« Sep   Nov »
1234567
891011121314
15161718192021
22232425262728
293031  

Blog Stats

  • 78,509 hits