No definitely not, but I am curious what your specific use-case is to want that. How would you be able to find a class without opening every file to see if it is in there?
On Thu, Oct 15, 2009 at 12:33 AM, dennis <den...@anel.cc> wrote: > > > I want to create more than one class in a single .as file, but finally > this is not allowed! > > > > I read at > http://livedocs.adobe.com/flex/3/html/help.html?content=basic_as_2.htmlthe > follow rule: > > “In a single ActionScript file, you can define only one class in the > package. To define more than one class in a file, define the additional > classes outside of the package body.” > > > > Implementing by this way, the additional classes doesn’t belong to the > package (specified in the .as), but belong in the “default package” > something that I do not want it. > > > > Of course, the other way Is to implement the class in another .as of the > same package but this will have as result so many .as files (doing nothing > in particular). > > > > So, I just want to clear, there is no way to have more than one class of > the same package in the same .as file??? > > > > *dennis* > > ...*we are what we are doing*... *P **Think! before you print.** * > > > > >