Tuesday, May 27, 2008

Package in ActionScript 3

Syntax:

Package{
Class classname
{
…………
}
}



Package allows grouping of the code so that it can be imported by some other script. We use Package keyword to show that class belongs to that package.
The Flash Player API classes are in the flash.* package. For example Flash API contains package flash.net package for transmitting data to and from the server. The package flash.* contains the following classes:

1) The action Script Component Classes which are included in the Packages: fl.accessibility, fl.conatiners, fl.controls, fl.core, fl.data, fl.events, fl.livepreview and fl.managers.
2) FLV playback component classes are included in the Package fla.video
3) Local class for Multilanguage classes are in the Package: fl.lang
4) The Motion classes are included in the Package: fl.motion
5) The Tween and Transition classes are included in the Package: fl.transitions




Containers Package contains ScrollPane Class


No comments: