Hi all Kirupians, quick zooming question here. I have this AS so far :
//1
function zoom() {
square._width += speed;
square._height += speed;
}
var speed = 2, id, interval = 100;
square.onRollOver = function() {
id = setInterval(zoom, interval);
};
square.onRollOut = function() {
clearInterval(id);
};
//2
function zoom() {
square._width += speed;
square._height += speed;
}
var speed = 2;
square.onRollOver = function() {
square.onEnterFrame = zoom;
};
square.onRollOut = function() {
delete square.onEnterFrame;
};
What this does: when the mouse is passed over the movie clip “square”, it begins to zoom, or enlarge. What i need to do is have the AS function perfectly on frame 1, then on frame 15 the script does not function at all, and the movieclip returns back to it’s original size. (or after 15 seconds, whichever is more flexible) I’ve made a rough example for you all to take a look at. Thanks for ANY help. Take care.
Victor.