AS3 Tween doesn't work proprly
Hi All,
I have a MovieClip with two buttons inside of it (bottom portion)
When I mouse over the MovieClip - it rises up, to revewl the buttons. My problem is, when I mouse over the buttons, the movie clip drops back down. The buttons don't have any actions upplied to them... It acts as though buttons were standing between the cursor and the movie clip...
The idea is to hower over the movie clip > reveal the buttons > either move mouse away or click on one of the buttons. However, the movie clip closes when I touch either one of the buttons.. Any help would be super appreciated! Below is the code and thnks a bunch ahead of time:
import fl.transitions.Tween;
import fl.transitions.easing.*;
var breatheOpenY:Tween;
var breatheCloseY:Tween;
breathe_mc.addEventListener(MouseEvent.MOUSE_OVER, breatheOpen);
breathe_mc.addEventListener(MouseEvent.MOUSE_OUT, breatheClose);
function breatheOpen(event:MouseEvent):void
{
breatheOpenY = new Tween(breathe_mc,"y",None.easeNone,117,77,.5,true);
breathe_mc.learn_btn.visible = true;
breathe_mc.video_btn.visible = true;
}
function breatheClose(event:MouseEvent):void
{
breatheCloseY = new Tween(breathe_mc,"y",None.easeNone,77,117,.5,true);
breathe_mc.learn_btn.visible = false;
breathe_mc.video_btn.visible = false;
}