Question

I'm trying to place a class into a package where another public class is placed. The documentation says that only one external visible declaration can be put in a package.

So i declare the second class internal. But then it gives the following error:

5006: An ActionScript file can not have more than one externally visible definition: character.AnimatedCharacterClass, character.CharacterPositions

The code I use is:

internal class CharacterPositions
{
    public static const BEGIN_WALK:String = 'begin_walk';
    public static const END_WALK:String = 'end_walk';
    public static const STAND:String = 'stand';     
}

Does anyone have a clue what is happening here?

Was it helpful?

Solution

I found that i have to put the second class outside the package. It still confuses me though.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top