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 |
how many levels does flash mx support? : Adobe flash
what is the primary purpose of the stage object? : Adobe flash
can any one tell good training center for adobe flex in chennnai?
What are the data types supported by actionscript?
How to start a graphic animation at a specific frame?
can flash .swf movies be very time consuming to edit? : Adobe flash
the class that is inheriting the another is known as the? : Adobe flash
How to add event listeners in mxml components.
in general, non-mp3 digital audio destined to be imported into the flash mx authoring environment should first be compressed how much? : Adobe flash
Do you know what are the ways in which actionscript's code can be protected?
which two panels can be used to change the label text of a button component? : Adobe flash
How we can create a scrolling gallary in a portfolio,what is the script?