Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

what does the childnodes property contain? : Adobe flash

816


which two textfield events can be captured to trigger scripts to run? : Adobe flash

898


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

844


Write a program to show the external actionscript?

847


how does an xmlsocket server know when a received message is complete? : Adobe flash

872


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

928


What is meant by vector graphic animation?

826


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

867


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

862


which method is best for removing an object(e.g.,Myobj) from memory? : Adobe flash

910


Explain what are the features provided by actionscript 3.0?

785


What are the ways in which actionscript's code can be protected?

836


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

875


How many methods for depth are available?

839


when should one generally use the post method instead of the get method? : Adobe flash

873