Potential Bug? (very weird)

I’m completely stumped on this one. I have several applications that all use the same ui assets for simple things like buttons and icons. I’ve set it up so that all the items in the different libraries all link back to one master library and they get updated whenever the file is published. I’ve been doing this for quite some time now and it’s worked perfectly. Suddenly I have one file that throws up this error:

1046: Type was not found or was not a compile-time constant: emailIcon.

Now normally I would just think I was missing a library item somewhere and see where it needs to be replaced on that item is in the library with the correct name. But the really weird part is that when I publish flash starts making a bunch of copies of the folders in my library but they are all empty.

For instance I have a buttons folder and when I publish I end up with like 4 buttons folder named buttons copy 1, buttons copy 2… and more get added every time I publish.

Any clues???