Fade in/out transition with ONLY code and one frame

hopefully this is simple.

I usually do this with code and timeline, but i need to do this in one frame with only buttons. so for example

btn1.onRelease = function(){
bg_con._alpha = 0;
bg_con.alphaTo(100, 0.5, “linear”);
loadBitmapSmoothed(“images/bg4.jpg”, bg_con);
}

so that fades in nicely, now i need it to fade out when the next button is pressed and then that button fades in and out, etc.

(i just realized how terrible i am at explaining things )

use tween class look at tuts on main page

use loadclip()

im using MCTween

http://hosted.zeh.com.br/mctween/

let me rephrase here…

im looking for a cross-fading effect using only button functions. I have 3 buttons(more later but shouldn’t matter), when one is pressed i want it to fade the image in, when another is pressed i want that same image to fade out, load the new image, and then fade back in.

All of the images are being loaded into the same MC. So technically your just fading in/out around the loading of the image, but the catch is using only the button code to do the crossfading.

so…
fade in > image load > new button pressed > fade out > image load > fade in