Simple time question

I’m trying to fade away my navigation buttons after pressing them while a scene loads, and then have them reappear after 20 seconds.

I can’t seem to get the delay to work, or get the buttons to do a gradual fade.

something like this:

on (release){


if (time) =>20 ; set. but1._alpha=100;

any suggestions?

onClipEvent (enterFrame) {
	var bytes = _root.getBytesTotal();
	var bytes_loaded = _root.getBytesLoaded();
	if (bytes_loaded == bytes) {
                                this.onEnterFrame = menu.fadeIn;
	} else {
MovieClip.prototype.fadeIn = function() {
        this._alpha += 5;
MovieClip.prototype.fadeOut = function() {
        this._alpha -= 5;
menu.onRelease = function() {
// You could change this to 
// menu.onPress = function() {
// 4 a faster reaction. 
        this.onEnterFrame = this.fadeOut;

Just make a simbol with the label ‘menu’

Thanks for the help, I’m starting to understand how it’s supposed to function, but i can’t seem to get it to work

when one of the buttons are pressed i want all the buttons to fade away, then after 20 seconds i want them to fade back in.

what am i doing wrong? any help would be greatly appreciated