Hi,
Reading the Manual Programming Actionscript 3.0 in sction:
Overview of Actionscript Programming > Actionscript Language and Syntax
> Packages and Namespaces > Packages:
It says:
ActionScript 3.0 allows you to include multiple classes in one source
file, but only one class in each file can be made available to code that
is external to that file. In other words, only one class in each file
can be declared inside a package declaration. You must declare any
additional classes outside your package definition, which makes those
classes invisible to code outside that source file.
But just above that they show an example of package flash.xml


package flash.xml
{
     class XMLDocument {}
     class XMLNode {}
     class XMLSocket {}
}


So as I can see yes we can declare more than one class inside a package
declaration, which is contradicting what've been said on the manual. Or
do they mean something different.

Can please someone shed more light on this.

Thanks
Jairo






Reply via email to