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?
Packages can’t be nested… The error message doesn’t refer to com.example.foo
being nested within com.example
. It means that you can’t have code like:
package com {
package example {
}
}
This also applies to timeline/frame scripts, because they’re implicitly wrapped into a class and package.
Really? What’d it look like in code? And where does Adobe’s site say it?