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
in general, non-mp3 digital audio destined to be imported into the flash mx authoring environment should first be compressed how much? : Adobe flash
How to add conditional logic for the submit button?
which statement best describes what the #initclip num and #endinitclip commands indicate? : Adobe flash
which of cannot be automatically outputted by the trace action? : Adobe flash
which actionscript method should be used to bring a component from the library to the stage? : Adobe flash
How to embed flash in html?
which of the following is not a typical host application for the flash player? : Adobe flash
which two textfield events can be captured to trigger scripts to run? : Adobe flash
Explain what does the void function and object contain in actionscript?
Differentiate between as2 and as3.
Explain what are the different utils libraries in actionscript?
which charactor can be added to the identifire mylengthyvariable, to make it more redable? : Adobe flash
How to add event listeners in mxml components. Name the as3 components?
How to write a program that shows the usage of data types?
Can you explain what are the differences between javascript and actionscript?