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

Explain what are the data types supported by actionscript?

791


What is the use of pre-loader?

905


What are the functions used with flash media?

790


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

789


What are the different utils libraries in actionscript?

730


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

798


explain the correct way to create an alert box using geturl and javascript? : Adobe flash

749


which is not a benefit when adding a title in the document properties? : Adobe flash

759


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

801


which of the following is not an effective means of developing applications that are easy to debug? : Adobe flash

829


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

801


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

854


what is the key advantage of using loadvars instead of loadvariables? : Adobe flash

799


you have a video project that would best be served by using full screen mode. This needs to be done from within the browser, since you are not able to use a projector. Which publish settings should you use? : Adobe flash

793


what are the correct statements consenting text field? : Adobe flash

765