Hi again,

In the AS3.0 pdf page39, one can read:

"Many developers, especially those with Java programming backgrounds,
may choose to place only classes at the top level of a package.
ActionScript 3.0, however, supports not only classes at the top level of
a package, but also variables, functions, and even statements."

I tried to compile the following:

package
{
        var var1 : String;
        
        public class Test
        {
        }
}

But got the following error:

A file found in a source-path can not have more than one externally
visible definition. var1;Test


Any ideas?

Rgds,

Olivier

---------------------
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
---------------------

Reply via email to