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 |
Give an example that illustrates polymorphism in flash script.
Write a program that shows the usage of data types?
which two panels can be used to change the label text of a button component? : Adobe flash
What does reference means in actionscript?
difference between _root and _level
Write a program to create custom list in actionscript?
user accessibility on your video project is a key factor. Which two features should you choose? : Adobe flash
which of the following is not a key benefit of usability testing? : Adobe flash
what are the statements uses proper for loop syntax? : Adobe flash
How to write a program to show the external actionscript?
How to write a program that shows the usage of data types?
what are the correct statements consenting text field? : Adobe flash