MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual page 327

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

23.
In classeTest.fla, type the following ActionScript code on Frame 1 of the Timeline:
// filename: classeTest.fla
import ClassE;
var myE:ClassE = new ClassE();
trace(myE.k()); // 15
trace(myE.n(7)); // 12
myE.o(); // o
myE.p(); // p
24.
Save the Flash document, and then select Control > Test Movie to test the SWF file.
The values
,
15
12
return from the
ClassE.k()
the ClassE class implemented both the InterfaceB and InterfaceC interfaces, each method
from the two interface files must be defined. Although the InterfaceB and InterfaceC
interfaces only define the
means that all of its defined methods,
,
, and
display in the Output panel. These values are the values that
o
p
,
ClassE.n()
and
o()
p()
k()
,
, and
ClassE.o()
methods, InterfaceC extends InterfaceA. This
and
, must also be implemented.
n()
Example: Creating a complex interface
methods. Since
ClassE.p()
327

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents