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 |
where is the data pulled by a load variables function stored? : Adobe flash
what is the best reason for using the geturl command, instead of the fscommand, when communicating with the host application? : Adobe flash
what is the effect on the instances of a symbol if the symbol itself is changed? : Adobe flash
which two textfield events can be captured to trigger scripts to run? : Adobe flash
what is generally considered the ideal group size for usability testing? : Adobe flash
How to Communicate with JavaScript?
Diffrence between AS2 and AS3 ?
which keyword is used to attach methods and properties to a class? : Adobe flash
the class that is inheriting the another is known as the? : Adobe flash
Name the as3 components?
What will replace flash in 2020?
what is the downside of macromedia ui components making extensive use of ingeritance and encapsulation? : Adobe flash