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 |
Do you know what are the different primitive data types used in actionscript?
what is the most important factor in determining the compatibility of your application? : Adobe flash
what is the key advantage of flash being a true clientside application? : Adobe flash
Do you know what does reference means in actionscript?
Write a function for a button.
what is the use of depth? how many methods for depth are available?
what appears in the output window after executing this actionscript on the first frame of a movie? : Adobe flash
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
what is the primary difference between the xml.sendandload method and the xml.load method? : Adobe flash
Explain what are the data types supported by actionscript?
which two sets the x position of the instance my_mc to that of the mouse cursor? : Adobe flash
which of the following is not a key benefit of usability testing? : Adobe flash