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 the primary difference between the xml.sendandload method and the xml.load method? : Adobe flash
Do you know what are the different primitive data types used in actionscript?
How to write a program use a text field and display it using the actionscript?
which of the following is not a result of exporting a movie for a debug build? : Adobe flash
what is the downside of macromedia ui components making extensive use of ingeritance and encapsulation? : Adobe flash
what are the statements is true about actionscript in regards to the enforcement of private scope and public scope? : Adobe flash
the class that is inheriting the another is known as the? : Adobe flash
Differentiate between as2 and as3.
what is the recommended character to use to separate target level paths levels? : Adobe flash
Explain what are the data types supported by actionscript?
How to create scrolling gallery in portfolio?
what methods are used to pass variables out of flash to a server side solution? : Adobe flash