//マウスがボタン(fadein_btn)に乗ると、画像(dalma_mc)がフェードイン

fadein_btn.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler);
dalma_mc.alpha = 0;

function fl_MouseOverHandler(event:MouseEvent):void
{
dalma_mc.addEventListener(Event.ENTER_FRAME, fl_FadeSymbolIn);

function fl_FadeSymbolIn(event:Event)
{
	dalma_mc.alpha += 0.01;
	if(dalma_mc.alpha >= 1)
	{
		dalma_mc.removeEventListener(Event.ENTER_FRAME, fl_FadeSymbolIn);
	}
}
}

//マウスがボタン(fadeout_btn)に乗ると、画像(dalma_mc)がフェードアウト

fadeout_btn.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler_3);
dalma_mc.alpha = 1;

function fl_MouseOverHandler_3(event:MouseEvent):void
{

dalma_mc.addEventListener(Event.ENTER_FRAME, fl_FadeSymbolOut_3);

function fl_FadeSymbolOut_3(event:Event)
{
	dalma_mc.alpha -= 0.01;
	if(dalma_mc.alpha <= 0)
	{
		dalma_mc.removeEventListener(Event.ENTER_FRAME, fl_FadeSymbolOut_3);
	}
}
}