
16/05/2007, 11:09
|
 | Moderador | | Fecha de Ingreso: julio-2003 Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 21 años, 7 meses Puntos: 406 | |
Re: como controlar mi zoom Escribe el código así:
zin.onPress = function() {
mapa.onEnterFrame = function() {
if (this._xscale<200) {
this._xscale = this._yscale=this._xscale+10;
}
};
};
zin.onRelease = function() {
delete mapa.onEnterFrame;
};
zout.onPress = function() {
mapa.onEnterFrame = function() {
if (this._xscale>100) {
this._xscale = this._yscale=this._xscale-10;
}
};
};
zout.onRelease = function() {
delete mapa.onEnterFrame;
};
Espero haberte sido de ayuda. |