what is the other way of using Inheritance in flash?
Answer Posted / 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 |
Post New Answer View All Answers
what is the key difference between while loops and do while loops? : Adobe flash
what should be inferred by a variable named birthplace_str? : Adobe flash
what is the primary difference between the xml.sendandload method and the xml.load method? : Adobe flash
which two are symbol options when converting an object into a symbol? : Adobe flash
Do you know what are the different primitive data types used in actionscript?
which of the following is not a guideline for conducting effective usability testing? : Adobe flash
Tell me what are the features involved in updating a language?
who can create flash movies? : Adobe flash
How to add event listeners in mxml components. Name the as3 components?
How to create scrolling gallery in portfolio?
What are the functions used with flash media?
Explain what are the features provided by actionscript 3.0?
it seems that most recommendations for using fill flash talk about using -1.3 to -1.7 stops of flash compensation. This seems like very little flash (compared to the ambient exposure). Would not -.5 or -1 stop be better? : Adobe flash
Do you know what are the ways in which actionscript's code can be protected?
explain the flash vs. Animated images and java applets? : Adobe flash