what is the other way of using Inheritance in flash?
Answers were Sorted based on User's Feedback
Answer / 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 |
How do you start a graphic animation at a specific frame?
what is not a disadvantage of using the fscommand? : Adobe flash
How many methods for depth are available?
which actionscript classes are used to play flv formatted video? : Adobe flash
What are the ways in which actionscript's code can be protected?
What are the different utils libraries in actionscript?
what are the different design patterns available in flash?
what is the use of new property condensedwhite in text?
where is the data pulled by a load variables function stored? : Adobe flash
How to change background color and stage size?
what is the function of trace? : Adobe flash
How to write a program to create custom list in actionscript?