Firing from a rotating cannon

This is the first time I am having a go at a game. I need advice on firing bullets from a rotating cannon. I have got the cannon to rotate, but cant get the bullets to fire in the same directions.
please can anyone help on how i go about doing this i.e what maths to use etc
I am using flash mx

many thanks