Weird error on output "Packages cannot be nested"

I have 2 Flash/Flex type of FLA’s. They are combined with an XML file in order to change colors for a blanket. (Almost like a game.) One has the Graphics, and I decompiled the swf from the web site and found the code that had somehow had been deleted. The other one is only code that works with the first one. Also an XML page that controls the colors one can use. I added in the code but am getting an Error of … “Packages cannot be nested” I am an intermediate AS3 programmer. But this is a little above my head. I will also need it by Friday. If anyone can figure out what I am doing wrong I am willing to pay 200$ to 250$ If you can add a few colors and make another small change or two, I will pay 600$