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
How to create scrolling gallery in portfolio?
which actionscript classes are used to play flv formatted video? : Adobe flash
Do you know what is the difference between an array and vector?
you have a dynamically loaded image that is larger than your stage. Which component would work best to accommodate this image? : Adobe flash
when does the accessibility . Isactive () method return true? : 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
you understand from the sb-25 manual that the built-in, retractable bounce card is meant for use with the flash head in a vertical position? : Adobe flash
which of the following is not a key benefit of usability testing? : Adobe flash
Write a program use a text field and display it using the actionscript?
explain the flash vs. Animated images and java applets? : Adobe flash
what are the statements best describes an event handler? : Adobe flash
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
can flash .swf movies be very time consuming to edit? : Adobe flash
which methods can be used to determine if a microphone or a camera is installed on the users machine? : Adobe flash
How many methods for depth are available?