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

where is the data pulled by a load variables function stored? : Adobe flash

0 Answers  


How to add an effect to the movie clip?

0 Answers  


Do you know what does reference means in actionscript?

0 Answers  


What are the different primitive data types used in actionscript?

0 Answers  


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

0 Answers  


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

0 Answers  


Difference between shared lib and shared objects

4 Answers  


what are the steps is not required in order to test or deploy flash remoting? : Adobe flash

0 Answers  


Explain what does the void function and object contain in actionscript?

0 Answers  


what is the key advantage of flash being a true clientside application? : Adobe flash

0 Answers  


What are the functions used with flash media?

0 Answers  


what should be inferred by a variable named birthplace_str? : Adobe flash

0 Answers  


Categories