how to create a fade in AS3

if (john_btn.alpha != 1){
     john_btn.alpha += .01;
 }

All of that needs to be wrapped in something that’s going to make it repeat. An enterFrame event or a timer event.