Need shooting help

How would you go about making a movie clip shoot a bullet from it, but have the movieclip able to move around, like a sidescroller game…