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 |
where is the data pulled by a load variables function stored? : Adobe flash
How to add an effect to the movie clip?
Do you know what does reference means in actionscript?
What are the different primitive data types used in actionscript?
you have a rectangle shape with rounded corners. You want to ensure that the corners do not distort when the rectangle is scaled. What should you do? : Adobe flash
what is the recommended character to use to separate target level paths levels? : Adobe flash
Difference between shared lib and shared objects
what are the steps is not required in order to test or deploy flash remoting? : Adobe flash
Explain what does the void function and object contain in actionscript?
what is the key advantage of flash being a true clientside application? : Adobe flash
What are the functions used with flash media?
what should be inferred by a variable named birthplace_str? : Adobe flash