what is the other way of using Inheritance in flash?
Answer Posted / p.suman
Well, "prototype" in AS1 or in general used to defined
member function of a class outside its definition.
Interface classes provide pure virtual functions for the
concrete classes to implement on them resulting a greater
flexibility in reusable code.
In Flash the otherway of using inheritance is to use the
key word "Extends" , which will give the properties and
methods of a base class to its subclasses.
Ex:
class myMovie extends MovieClip{
public function myMovie(){
}
}
Here myMovie class derives all the available properties of
a MovieClip class.
Regards,
Suman.P
Module Lead
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What does reference means in actionscript?
Can you explain what are the differences between javascript and actionscript?
what is the most important factor in determining the compatibility of your application? : Adobe flash
what is needed when using static text to have font outline embedded in swf file? : Adobe flash
tell the difference between indexed array and associative array? : Adobe flash
Describe changewatcher.watch.
Explain what are the features provided by actionscript 3.0?
what is the purpose of the break statement? : Adobe flash
what is the primary purpose of the stage object? : Adobe flash
What are the functions used with flash media?
How to embed flash in html?
Differentiate between as2 and as3.
Write a program to create custom list in actionscript?
How many menus will you find on the menu bar?
How to play a movie clip?