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

what is the primary difference between the xml.sendandload method and the xml.load method? : Adobe flash

0 Answers  


Do you know what are the different primitive data types used in actionscript?

0 Answers  


How to write a program use a text field and display it using the actionscript?

0 Answers  


which of the following is not a result of exporting a movie for a debug build? : Adobe flash

0 Answers  


what is the downside of macromedia ui components making extensive use of ingeritance and encapsulation? : Adobe flash

0 Answers  






what are the statements is true about actionscript in regards to the enforcement of private scope and public scope? : Adobe flash

0 Answers  


the class that is inheriting the another is known as the? : Adobe flash

0 Answers  


Differentiate between as2 and as3.

0 Answers  


what is the recommended character to use to separate target level paths levels? : Adobe flash

0 Answers  


Explain what are the data types supported by actionscript?

0 Answers  


How to create scrolling gallery in portfolio?

0 Answers  


what methods are used to pass variables out of flash to a server side solution? : Adobe flash

0 Answers  


Categories