function ZoomButtons() {
this.onRollOver = function() {
this.maxScale = 200;
this.scaleInc = 50;
this.onEnterFrame = function() {
if (this._xscale<this.maxscale) {
this._xscale = this._yscale += this.scaleInc;
} else {
this._xscale = this._yscale=this.maxScale;
delete this.onEnterFrame;
}
};
};
this.onPress = function() {
this.scaleInc = 50;
// set the increments at which you want the mc to scale
this.onEnterFrame = function() {
if (this._xscale>150) {
this._xscale = this._yscale -= this.scaleInc;
} else {
this._xscale = this._yscale=150;
delete this.onEnterFrame;
}
};
};
this.onRelease = function() {
if(_level0.button_pressed_once == false){
this.scaleInc = 50;
// set the increments at which you want the mc to scale
this.onEnterFrame = function() {
if (this._xscale>500) {
this._xscale = this._yscale -= this.scaleInc;
} else {
this._xscale = this._yscale=500;
delete this.onEnterFrame;
}
};
_level0.button_pressed_once = true;
} else {
this.scaleInc = 50;
// set the increments at which you want the mc to scale
this.onEnterFrame = function() {
if (this._xscale>100) {
this._xscale = this._yscale -= this.scaleInc;
} else {
this._xscale = this._yscale=100;
delete this.onEnterFrame;
}
};
_level0.button_pressed_once = false;
}
};
this.onRollOut = function() {
this.scaleInc = 50;
// set the increments at which you want the mc to scale
this.onEnterFrame = function() {
if (this._xscale>100) {
this._xscale = this._yscale -= this.scaleInc;
} else {
this._xscale = this._yscale=100;
delete this.onEnterFrame;
}
};
};
}
ButtonArray = new Array (ZoomBtn, ZoomBtn1, ZoomBtn2, ZoomBtn3, ZoomBtn4, ZoomBtn5, ZoomBtn6, ZoomBtn7, ZoomBtn8, ZoomBtn9, ZoomBtn10, ZoomBtn11, ZoomBtn12)
for (var i = 0; i < ButtonArray.length; i++){
var who = ButtonArray[i]
ZoomButtons.apply (who)
}