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 |
How to write a program to create custom list in actionscript?
what is the purpose of the break statement? : Adobe flash
Is it possible to create document or folder from flash? if yes then how?
how does an xmlsocket server know when a received message is complete? : Adobe flash
what is generally considered the ideal group size for usability testing? : Adobe flash
when does the accessibility . Isactive () method return true? : Adobe flash
the f601/n6006 had a special control to set the fill-flash option on the body; is there a similar way to set fill levels on the f90x/n90s and sb-28 combo? : Adobe flash
How to play a movie clip?
How to add event listeners in mxml components. Name the as3 components?
what should be inferred by a variable named birthplace_str? : Adobe flash
explain the correct way to create an alert box using geturl and javascript? : Adobe flash
which is not a benefit when adding a title in the document properties? : Adobe flash