![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
16/05/2007, 11:09
|
![Avatar de Bandit](http://static.forosdelweb.com/customavatars/avatar36355_1.gif) | 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. |