Skip to main content
Participating Frequently
May 21, 2015
Question

Why do I get the error "Packages cannot be nested"?

  • May 21, 2015
  • 2 replies
  • 886 views

I had a FLA file that somehow had the AS3 erased, then I found the SWF and decompiled the file and retrieved the code.

It is the same code as before, and yet when I output it I get the error "Packages cannot be nested".

I have seen them nested before, and the Adobe site says you can do this.

What can I do?

This topic has been closed for replies.

2 replies

Participating Frequently
May 21, 2015

It's a big file 2000 lines of AS3 or so.......

kglad
Community Expert
Community Expert
May 21, 2015

that's not going to work. there's no way for flash to find Blanket1322C.

put those two classes in two different class files named correctly so flash can find them.

Participating Frequently
May 21, 2015

I will give it a try but it may be a little over my head I may have to find some help.

But thank you very much you gave me some hope!

kglad
Community Expert
Community Expert
May 21, 2015

what code is triggering the error?

Participating Frequently
May 21, 2015

Only compiling it, when I check the syntax, no problem.

I got the code from a working SWF online, it works fine.

I am beginning to think it is corrupted.

What do you think?

kglad
Community Expert
Community Expert
May 21, 2015

decompiled swfs often have errors.  but you should still be able to check the code and correct it.