Hi
I’d like to get the content sliding and then zooming in effect achieved here:
I know that the the basic content slide works using the AS below.
Any ideas on adapting this to get the effect achieved at Zebra? Or is a different approah needed?
Grateful for any input.
Thanx
Dirk
onClipEvent (load) {
_root.targetx = 116;
_root.targety = 34;
speed = 4;
_root.onEnterFrame = function() {
_x += (_root.targetx-_x)/speed;
_y += (_root.targety-_y)/speed;
};
}
onClipEvent (enterFrame) {
if (_y == targety && _x == targetx) {
delete this.onEnterFrame;
}
}
on (release) {
_root.targetx = 116;
_root.targety = 34;
}
on (release) {
_root.targetx =-155;
_root.targety = 34;
}
on (release) {
_root.targetx =116;
_root.targety =-196;
}
on (release) {
_root.targetx =-155;
_root.targety =-196;
}