what is the other way of using Inheritance in flash?
Answers were Sorted based on User's Feedback
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 |
Can you organize layers as in photoshop?
What is the difference between _root and parent?
10 Answers Alok Industries, eLearning, IBM, MBT, Origami,
what is the use of new property condensedwhite in text?
difference between _root and _level
can any one tell good training center for adobe flex in chennnai?
Hi All, I am new in flash so please help me, When I make a website on Flash & when we wright code on buttons in AS2[CODE: on(release) gotoAndStop ()], we found when we click twice on a button the page automatically switch. (means, code do not work properly). Thanks,
Do you know what are the different primitive data types used in actionscript?
Differentiate between as2 and as3.
what are the steps is not required in order to test or deploy flash remoting? : Adobe flash
what are the statements best describes an event handler? : Adobe flash
How we can create a scrolling gallary in a portfolio,what is the script?
Hat are the differences between javascript and actionscript?