Posted in

Pasar un objeto a un nivel superior

Si nos encontramos con el caso de tener unos botones muy juntos que lo que hacen es superponerse al hacer rollover, pero queremos que al que le hacemos rollover se coloque por encima de los otros y no quede en segundo plano podemos usar la funciono swapDepths junto a la getNextHighestDepth.

on(rollOver) {
    this.swapDepths(_root.getNextHighestDepth());
    onEnterFrame = function() {
        if(this._xscale < 160) {
            this._xscale += 15;
            this._yscale = this._xscale;
            }
        }
    }
on(rollOut) {
    onEnterFrame = function() {
        if(this._xscale > 100) {
            this._xscale -=15;
            this._yscale = this._xscale;
            }
        }
    }
            

Deixa un comentari

L'adreça electrònica no es publicarà. Els camps necessaris estan marcats amb *


The reCAPTCHA verification period has expired. Please reload the page.