Kirsten Dunst was horrified and quit the film she was set to appear in after the director made an "inappropriate" remark.