ArgumentError:Error #2012?

I have written an actionscript 3.0 application that uses a custom package I wrote. When I try to run the .swf file and have a try catch block on the point of declaring my custom class object, I get outputted a ArgumentError:Error #2012. I searched for this and it seems the errors is The class cannot be instantiated. This error only happens when I am running my .swf though the Flash Player 9 on Solaris 10 using Mozilla Firefox and not on Windows using IE . Does anyone know how to fix this? The .fla file does know where my custom .as file is, so it doesn’t seem to be a problem with it finding the file. Thanks