Declaring the package and class together has been deprecated since ActionScript 3. The package definition should be declared outside of the class
definition even if the old syntax is still supported.
Noncompliant code example
class P.A {...}
Compliant solution
package P {
class A {...}
}