According to traditional Catholic teaching, the moral value of a human act depends on its object, end and circumstances. The object is the direction of the act; it is what you chose to do.
For Hollywood, it was a desperate attempt to avoid federal regulation, but for the Catholics who conceived, wrote and enforced the code, it was a chance to marry Catholic morality to popular ...