// first try
help_mc.addEventListener(MouseEvent.CLICK, moveToLeft);
function moveToLeft(e:MouseEvent):void {
if (allObjectOfTitle.x == 400) {
new Tween(mp3_mc, "x", Regular.easeInOut, 326.3, 1066.3, 1, true);
}
}
help_mc.addEventListener(MouseEvent.CLICK, moveToRight);
function moveToRight(e:MouseEvent):void {
if (allObjectOfTitle.x == 1140) {
new Tween(mp3_mc, "x", Regular.easeInOut, 1066.3, 326.3, 1, true);
}
}
//-----------------------------------------------------------------------------
help_mc.addEventListener(MouseEvent.CLICK, moveToLeft);
function moveToLeft(e:MouseEvent):void {
if (allObjectOfTitle.x == 400) {
new Tween(mp3_mc, "x", Regular.easeInOut, 326.3, 1066.3, 1, true);
} else if (allObjectOfTitle.x == 1140) {
new Tween(mp3_mc, "x", Regular.easeInOut, 1066.3, 326.3, 1, true);
}
}
|