I want to use SoundFacade class from Adobe. (Here, from github). I simple created an "ActionScript File" and paste all the code. But when I want to compile my app I got following error:
1037: Packages cannot be nested.
The only reason I can guess is that the package must somehow put into the project or something.
EDIT: Even when I just put a simple empty package I got the error:
package {
}
How to Reproduce the bug?
- Create a new Flex Mobile Project.
- Click New > ActionScript File
- type package { }
- include new package in one your views
code:
<fx:Script source="../SoundFacade.as" />
You will get the error
{and}matching, I'm not sure, but I think I had similar error because of {}. - user1875642