Page transition effect problem

guys… i’m a beginner to AS3 and i’ve been created a simple website using Flash CS3 with AS3… on this site i want to create a transition effect using a page which will be animate right after the last page finished and before the next page appear… that page transition will appear one level next to the last page and after the next page appear… the last page and transition page will be removed… sorry if my english not so well…

here’s my code

import fl.transitions.Tween;
import fl.transitions.easing.*;

var currentPage:MovieClip = home_mc;
var lastPage:MovieClip;

var button_height:Number = home_mc.buttonbg_mc.height;
lineMenu_mc.x = home_mc.x;

var homePage:pageHome = new pageHome();
var aboutPage:pageAbout = new pageAbout();
aboutPage.stop();
var effectPage:pageEffect = new pageEffect();
effectPage.stop();
var servicePage:pageService = new pageService();
servicePage.stop();
var contactPage:pageContact = new pageContact();
contactPage.stop();

homePage.x = 33;
homePage.y = 207;
effectPage.x = aboutPage.x = servicePage.x = contactPage.x = 35;
effectPage.y = aboutPage.y = servicePage.y = contactPage.y = 210;

home_mc.buttonMode = true;
about_mc.buttonMode = true;
service_mc.buttonMode = true;
gallery_mc.buttonMode = true;
contact_mc.buttonMode = true;

home_mc.targetMC = homePage;
about_mc.targetMC = aboutPage;
service_mc.targetMC = servicePage;
contact_mc.targetMC = contactPage;

addChild(homePage);

home_mc.addEventListener(MouseEvent.ROLL_OVER, buttonOver);
home_mc.addEventListener(MouseEvent.ROLL_OUT, buttonOut);
home_mc.addEventListener(MouseEvent.CLICK, buttonClick);

about_mc.addEventListener(MouseEvent.ROLL_OVER, buttonOver);
about_mc.addEventListener(MouseEvent.ROLL_OUT, buttonOut);
about_mc.addEventListener(MouseEvent.CLICK, buttonClick);

service_mc.addEventListener(MouseEvent.ROLL_OVER, buttonOver);
service_mc.addEventListener(MouseEvent.ROLL_OUT, buttonOut);
service_mc.addEventListener(MouseEvent.CLICK, buttonClick);

gallery_mc.addEventListener(MouseEvent.ROLL_OVER, buttonOver);
gallery_mc.addEventListener(MouseEvent.ROLL_OUT, buttonOut);
gallery_mc.addEventListener(MouseEvent.CLICK, buttonClick);

contact_mc.addEventListener(MouseEvent.ROLL_OVER, buttonOver);
contact_mc.addEventListener(MouseEvent.ROLL_OUT, buttonOut);
contact_mc.addEventListener(MouseEvent.CLICK, buttonClick);

function buttonOver(e:MouseEvent):void
{
new Tween(e.currentTarget.buttonbg_mc,“height”,Strong.easeOut,button_height,button_height+10,8,false);
new Tween(lineMenu_mc,“x”,Strong.easeOut,lineMenu_mc.x,e.currentTarget.x,8,false);
}

function buttonOut(e:MouseEvent):void
{
new Tween(e.currentTarget.buttonbg_mc,“height”,Strong.easeOut,e.currentTarget.buttonbg_mc.height,button_height,8,false)
new Tween(lineMenu_mc,“x”,Strong.easeOut,e.currentTarget.x,currentPage.x,8,false);
}

function buttonClick(e:MouseEvent):void
{
if (currentPage.targetMC == homePage)
{
removeChild(currentPage.targetMC);
}

addChild(effectPage);
effectPage.gotoAndPlay(1);
currentPage = MovieClip(e.currentTarget);
addChild(currentPage.targetMC);
currentPage.targetMC.gotoAndPlay(1);

}

please look at buttonCLick function