This is the script that create the movement
[AS]
// Create the picMask
_root.trans.attachMovie(“picMc”, “picMask”, 1000);
picMask._x = 120;
picMask._y = 90;
// Create the picBg which role as the background image.so called “preference object”
_root.trans.attachMovie(“picMc”, “picBg”, 500);
picBg._x = 120;
picBg._y = 90;
// Create the Mask
_root.trans.attachMovie(“maskMC”, “myMask”, 1500);
myMask._x = 120;
myMask._y = 90;
_root.trans.attachMovie(“bgMask”, “bgMask”, 700);
bgMask._x = 120;
bgMask._y = 90;
// Do the Mask job of setting picMask to Mask.
trans.picMask.setMask("_root.trans.myMask");
trans.picBg.setMask("_root.trans.bgMask");
// Create the animation pic loction array
picLocArr = [0, -640, -1280, -1920, -2560];
// animation MC of pic.
trans.onEnterFrame = function() {
with (mode) {
mode = trans.myMask._currentFrame;
if (trans.myMask._currentFrame == 5) {
trans.myMask.gotoAndStop(1);
}
}
if (picPlay != false) {
trans.picMask._x += (picLocArr[selectPicNum-1]-trans.picMask._x)/5;
trans.picBg._x += (picLocArr[selectPicNum-1]-trans.picBg._x)/4.5;
if (Math.abs(picLocArr[selectPicNum-1]-trans.picMask._x)<0.2) {
trans.picMask._x = trans.picLocArr[selectPicNum-1];
picPlay = false;
}
}
};
[/AS]
now what i want to do, is to go to a framewhen the movement is finish
something like
[AS]
if (Math.abs(picLocArr[selectPicNum-1]-trans.picMask._x)<0.2) {
gotoAndPlay(“checked”);
}
[/AS]