Hi I would like to apply a zoom feature where the user can scroll the mouse wheel to zoom in and out on a movieclip. I currently have zoom implemented as buttons. How would I go about implementing the wheel action?
button zoom code:
[AS]
small.onPress = function(){
ROOT.onEnterFra me = function(){
zoom._xscale*=0 .9;
zoom._yscale*=0 .9;
checkBounds(0,0 ,0,0);
}
}
small.onRelease = function() {
delete ROOT.onEnterFra me;
}
small.onRelease Outside = function() {
delete ROOT.onEnterFra me;
}
big.onPress = function(){
ROOT.onEnterFra me = function(){
zoom._xscale*=1 .1;
zoom._yscale*=1 .1;
checkBounds(0,0 ,0,0);
}
}
big.onRelease = function() {
delete ROOT.onEnterFra me;
}
big.onReleaseOu tside = function() {
delete ROOT.onEnterFra me;
}
[/AS]
button zoom code:
[AS]
small.onPress = function(){
ROOT.onEnterFra me = function(){
zoom._xscale*=0 .9;
zoom._yscale*=0 .9;
checkBounds(0,0 ,0,0);
}
}
small.onRelease = function() {
delete ROOT.onEnterFra me;
}
small.onRelease Outside = function() {
delete ROOT.onEnterFra me;
}
big.onPress = function(){
ROOT.onEnterFra me = function(){
zoom._xscale*=1 .1;
zoom._yscale*=1 .1;
checkBounds(0,0 ,0,0);
}
}
big.onRelease = function() {
delete ROOT.onEnterFra me;
}
big.onReleaseOu tside = function() {
delete ROOT.onEnterFra me;
}
[/AS]
Comment