hi,
i am using the following code to zoom in and out on a movie clip. i do not want the clip to become less than 90% in size. the buttons work but it is possible to break the functionality as the clip size can get below 90 and the button becomes disabled. can i fix this with a loop?
any ideas much appreciated:
in_btn.onRelease = function (){
_root.inthemix._xscale*=1.25;
_root.inthemix._yscale*=1.25;
trace(inthemix._xscale);
out_btn.onRelease = function (){
_root.inthemix._xscale*=0.75;
_root.inthemix._yscale*=0.75;
if(inthemix._xscale < 90.000000000000) out_btn.enabled =false;
else if(inthemix._xscale >= 10000.0000000000000000) out_btn.enabled=true;
trace(inthemix._xscale);
}
};
thanks,
luke.
see it at www.lukem.co.uk (click on designs)