Need a simple fading action script!

i need a script that is real small, for when a picture enters in fades in then when u hit next it fades out then the next one fades in,

i no this is totaly not ryt but i need sum thing lik this

this.fadespeed=15;
_root.pic.enterframe=fadein;

?:q: