Duplicating a Class AS3
===

I have a movieClip in my library called blueBox, with a corresponding class, blueBox.as, which holds the blueBox() constructor, some variables and a function to handle a MOUSE_DOWN event. I also have a movieClip called redBox that needs a almost identical class to blueBox.as. Is it possible to duplicate blueBox.as, changing only the name of the constructor and the value of a variable without doing so manually and saving it as redBox.as? It isn't a big problem doing it manually for now, but as this project grows, it will create a meaningless amount of files, all containing the same information and this seems a bit redundant, any insight welcome.