[flexcoders] More than one class in the same file

2006-06-21 Thread alglx
Well, i've read that it is possible to place more than one class in the same as file and also within the body of a package, like for example package tutorial{ class Sample1 {} class Sample2 {} class Sample3 {} } but everytime i try to do that, Flex gives me an error saying... A file found

Re: [flexcoders] More than one class in the same file

2006-06-21 Thread Michael Schmalle
There can only be one public class in a package package { public function MyPublicClass() { } } // you need to import here again for the classes below // you can also have functions here function somePackageFunction(arg:Number):void { } MyInternalClass { public function MyInternalClass()