How to create that animation in actionscript?

I want to know how to create a script in action animation as eg: a layer in first keyframe in a transparent movieclip with 0 and keyframe in the 10 to reach 100 transparent (opaque).