Is it possible to define a document class that's inside a package?

Is it possible to define a document class that’s inside a package?

For instance, this would be the document class that I would use.


 package my_package
{
    public class main
    {
        public function main() {}
    }
}

I’ve been trying to get it done, but so far have not being successful.

just refer to it as:
my_package.main , in the document class textfield.

I kept doing my_package.main.as without realizing it.

It depends. In some cases you can’t, in some cases you can. The defining factor is the compiler implementation. I want to say Flash Professional allows it and the Flex SDK might not? Or maybe it didn’t before and now it does?

The best way to find out is try it and see. :slight_smile:
(which implies whatever you’re using may not)