what is the other way of using Inheritance in flash?

Answers were Sorted based on User's Feedback



what is the other way of using Inheritance in flash?..

Answer / kanu

this question is not related with visibility

other way of inheritance in AS1 is "prototype"

and in AS2 its interfaces

Is This Answer Correct ?    13 Yes 0 No

what is the other way of using Inheritance in flash?..

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

what is the other way of using Inheritance in flash?..

Answer / amitn

_visible=flase;

Is This Answer Correct ?    1 Yes 19 No

Post New Answer

More Flash Action Scripting Interview Questions

Explain what are the data types supported by actionscript?

1 Answers  


What are the features provided by actionscript 3.0?

1 Answers  


which of cannot be automatically outputted by the trace action? : Adobe flash

1 Answers  


what is default frame rate of the time line in frame per second? : Adobe flash

1 Answers  


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

1 Answers  


How to add event listeners in mxml components. Name the as3 components?

1 Answers  


what is not a disadvantage of using the fscommand? : Adobe flash

1 Answers  


What is the use of depth?

1 Answers  


Can you explain what are the differences between javascript and actionscript?

1 Answers  


How does removal of actual objects and data work in actionscript?

1 Answers  


which two panels can be used to change the label text of a button component? : Adobe flash

1 Answers  


What is meant by vector graphic animation?

1 Answers  


Categories