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
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()
2 matches
Mail list logo