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


Please Help Members By Posting Answers For Below Questions

How to create scrolling gallery in portfolio?

498


which actionscript classes are used to play flv formatted video? : Adobe flash

435


Do you know what is the difference between an array and vector?

443


you have a dynamically loaded image that is larger than your stage. Which component would work best to accommodate this image? : Adobe flash

449


when does the accessibility . Isactive () method return true? : Adobe flash

496






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

453


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

438


which of the following is not a key benefit of usability testing? : Adobe flash

509


Write a program use a text field and display it using the actionscript?

407


explain the flash vs. Animated images and java applets? : Adobe flash

472


what are the statements best describes an event handler? : Adobe flash

515


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

550


can flash .swf movies be very time consuming to edit? : Adobe flash

484


which methods can be used to determine if a microphone or a camera is installed on the users machine? : Adobe flash

481


How many methods for depth are available?

455