Flash Video Player

Inheritance

by admin on November 21, 2007 · 0 comments

in Advanced Actionscript 3, Flash CS3, Tutorials

Greetings to all!

We are at chapter 9 of the Object Oriented Programming with Flash CS3.
This time, I will get into the Inheritance of Actionscript 3.0.
I would like to precise that this theme is wide and complex and it is not the final goal for FlepStudio to get into every little details.
With this tutorial, you will get the base on what is Inheritance and its primary concepts.

For those of you who want to study Inheritance in more details, I advise this following book:
- Essential Actionscript 3.0 by Colin Moock - O’REILLY

So, what does Inheritance means in Actionscript 3.0?
In Object Oriented Programming, the term Inheritance expresses the concept of relationship in between 2 or more classes, where a class inherits the methods and property’s definitions from another class.
In practical terms, the Inheritance simply allows to use the code from a class to another.

Inheritance in biology is a genetic process with which a child for example inherits the color of eyes from his father and the color of hair from his mother.
This process does not implicate that the child has eyes and hair like his parents but also all its particularities.
In Actionscript 3.0, the Inheritance is very similar to the above example. A class will have available the methods and properties of another class and even more, will implement them as defined.

Let us look at some concrete examples…

Flash Components

Read more

Share This Post

Related posts

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">

Older post: mailTo method

Newer post: Elastic Gallery