Ver Mensaje Individual
  #7 (permalink)  
Antiguo 12/08/2009, 15:13
Avatar de Lynxcraft
Lynxcraft
 
Fecha de Ingreso: noviembre-2007
Ubicación: yecla murcia
Mensajes: 1.346
Antigüedad: 16 años, 5 meses
Puntos: 51
Respuesta: Problemas con Alpha por Action Script

a simple vista esta parte esta mal

Código PHP:
_root.s3.onEnterFrame = function() {
                
this._alpha += 5;
                if (
s3._alpha<=0) {
                    
s3._alpha 100;
                } 
tendría que ser así

Código PHP:
_root.s3.onEnterFrame = function() {
                
this._alpha += 5;
                if (
this._alpha>=100) {
                    
this._alpha 100;
                } 
y por otro lado yo para hacer el mismo efecto haría esto

Código PHP:
on (release) {
    
import mx.transitions.Tween;
    function 
Alpha(MCtiempoiniciofin) {
        var 
tw:Tween = new Tween(MC"_alpha"nulliniciofintiempotrue);
    }
    
Alpha(this,2,100,0);
    
Alpha(_root.s2,2,100,0);
    
Alpha(_root.s3,2,0,100);

__________________
Sobran las ideas cuando faltan ganas de trabajar en ellas
Lynxcraft