Thursday 11 February 2010

Actionscript For Dummies

[simpleaffiliate source="chitika" results="0"][/simpleaffiliate]

In ActionScript 3, in plain English, what does "extends" mean when building a custom class?

For example, you're building a custom class in AS3, in which you might see something like...

"public class MyClass extends MovieClip"
or
"public class MyClass extends Sprite"

In "AS3 for Dummies" type language, what exactly does this mean, and is happening upon instantiation?
Just trying to get a better understanding and grasp on composition vs inheritance.


It means exactly that...your class extends the class further, meaning it inherits all the properties (variables and functions) of the extended class and then allows you to add your own functions and variables to make the class work for a usually more specialized purpose.


ActionScript 3.0 Lesson 12: Create a Real Clock in Flash Using Sytem Date and Time









[simpleaffiliate source="amazon" results="10"]actionscript for dummies[/simpleaffiliate]
[simpleaffiliate source="cj" results="10"]actionscript for dummies[/simpleaffiliate]
[simpleaffiliate source="clickbank" results="10"]actionscript for dummies[/simpleaffiliate]

No comments:

Post a Comment