Fade in/out

I’m just wondering how I can make it when you navigate into a page in will fade in and when you navigate out of the page it will fade out using action script.

I know i can do it manually with tween but hoping to find out how to do it with AS

Thanks vxd