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
what does the childnodes property contain? : Adobe flash
which two textfield events can be captured to trigger scripts to run? : Adobe flash
How to write a program use a text field and display it using the actionscript?
Write a program to show the external actionscript?
how does an xmlsocket server know when a received message is complete? : Adobe flash
what are the statements best describes an event handler? : Adobe flash
What is meant by vector graphic animation?
if we set slow sync as you suggest in answers on the many online forums you visit, would not we be opening ourselves up to blurred shots when the shutter speed gets significantly below 1/60? : Adobe flash
when does the accessibility . Isactive () method return true? : Adobe flash
which method is best for removing an object(e.g.,Myobj) from memory? : Adobe flash
Explain what are the features provided by actionscript 3.0?
What are the ways in which actionscript's code can be protected?
what is the recommended character to use to separate target level paths levels? : Adobe flash
How many methods for depth are available?
when should one generally use the post method instead of the get method? : Adobe flash