Stop zoom :)

hey guys… :snug:

i made this map [ following this tut http://www.kirupaforum.com/forums/showthread.php?threadid=33603&highlight=zoom+map ] with the zooms and stuff…

but how do i get it to stop zooming when it reaches a certain size?

thanks in advance !!:smiley:

you mean the Grandsp5’s map?
[AS]on (press) {
this.onEnterFrame = function() {
_root.square._xscale += 3;
_root.square._yscale += 3;
_root.square._x -= 2;
_root.square._y -= 2;
if (_root.square._xscale>150) {
delete this.onEnterFrame;
}
};
}
on (release) {
delete this.onEnterFrame;
}[/AS]
this will stop when scaling is 150%

scotty(-:

ooooooh !! cool ! thank you !:bounce:

no problem:thumb: