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 |
what are the steps is not required in order to test or deploy flash remoting? : Adobe flash
for methods within objects,what does the keyword this specifically refer to? : Adobe flash
What are the functions used with flash media?
How to change background color and stage size?
Tell me what are the different ways in which the variables can be assigned?
How to add event listeners in mxml components. Name the as3 components?
Give a brief description of the following terms: a) Play head b) Symbol c) Tweening d) ActionScript e) Frame rate f) Library panel g) Masking h) Context – sensitive Property Inspector i) Bandwidth Profiler j) Frame Label
explain the correct way to create an alert box using geturl and javascript? : Adobe flash
What is meant by vector graphic animation? What is the use of pre-loader?
psd. Which format would give you the most options within your flash project? : Adobe flash
Name the as3 components?
which charactor can be added to the identifire mylengthyvariable, to make it more redable? : Adobe flash