Flash 8 Classes

I am using a custom class in Flash Pro 8. When I test the .fla using the class with import… the code works and everything is OK - but when I test the compiled swf the program does not work. I have set the class path in the Preferences menu to the folder in which the class resides. Any ideas??