Question
1037: Package Cannot Be Nested
Hi --
I ran in to the "1037: Package Cannot Be Nested" error when using the sample
code in Flash help and found the "How to Use the Examples" portion of the
Adobe Flash help files to finally get my answer. It appears to be an issue
many others have come across so I thought I would explain in more detail how
to solve this problem.
What you need to do is save the ActionScript file as the name of the class,
for example "MyClass." Then you set the Flash movie "Document Class"
(FILE-->PUBLISH SETTINGS-->FLASH-->SETTINGS) to "MyClass." You do not need
to call/refer to/load the ActionScript file in the Flash movie -- it will do
it automatically for you! Just make sure the FLA and the AS file are both in
the same directory.
Rich
