Through a number of cases the Supreme Court has created a framework for speech and expression that is NOT protected under the first amendment. This includes actions that deter from a legitimate government function that isn't directly related to the speech. This includes, burning a draft card (war effort) or burning money (regulating commerce), but not burning the flag.