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
Explain what are the data types supported by actionscript?
What is the use of pre-loader?
What are the functions used with flash media?
which methods can be used to determine if a microphone or a camera is installed on the users machine? : Adobe flash
What are the different utils libraries in actionscript?
How does removal of actual objects and data work in actionscript?
explain the correct way to create an alert box using geturl and javascript? : Adobe flash
which is not a benefit when adding a title in the document properties? : Adobe flash
Explain what does the void function and object contain in actionscript?
which of the following is not an effective means of developing applications that are easy to debug? : Adobe flash
what is the key advantage of flash being a true clientside application? : Adobe flash
which two textfield events can be captured to trigger scripts to run? : Adobe flash
what is the key advantage of using loadvars instead of loadvariables? : Adobe flash
you have a video project that would best be served by using full screen mode. This needs to be done from within the browser, since you are not able to use a projector. Which publish settings should you use? : Adobe flash
what are the correct statements consenting text field? : Adobe flash