What version of Maya are you running? (Note: this is important, as there is a step-by-step flag tut in the 4.5 docs that I found