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 |
What is meant by vector graphic animation? What is the use of pre-loader?
Tell me what are the features involved in updating a language?
what is the key purpose of using layers in a timeline? : Adobe flash
there are two text fields on stage both are having same properties but still one is coming blurred y and how could u resolve it?
which items cannot be hidden from screen readers? : Adobe flash
which keyword is used to attach methods and properties to a class? : Adobe flash
tell the difference between indexed array and associative array? : Adobe flash
Explain what are the data types supported by actionscript?
which two statements about device fonts are true? : Adobe flash
which methods can be used to determine if a microphone or a camera is installed on the users machine? : Adobe flash
what is the function of trace? : Adobe flash
explain the correct way to create an alert box using geturl and javascript? : Adobe flash