Actionscript ROACH

i’m making an experiment to make a roach move in flash. But i dont know how to mave the legs of the roach, i mean, i know how to move them, but no how to move the body by the legs. Someone knows?