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 |
Explain what are the data types supported by actionscript?
What are the features provided by actionscript 3.0?
which of cannot be automatically outputted by the trace action? : Adobe flash
what is default frame rate of the time line in frame per second? : Adobe flash
you have a dynamically loaded image that is larger than your stage. Which component would work best to accommodate this image? : Adobe flash
How to add event listeners in mxml components. Name the as3 components?
what is not a disadvantage of using the fscommand? : Adobe flash
What is the use of depth?
Can you explain what are the differences between javascript and actionscript?
How does removal of actual objects and data work in actionscript?
which two panels can be used to change the label text of a button component? : Adobe flash
What is meant by vector graphic animation?