Foros del Web » Creando para Internet » Flash y Actionscript »

Ayuda con action script en slideshow

Estas en el tema de Ayuda con action script en slideshow en el foro de Flash y Actionscript en Foros del Web. HOla amigos...tengo un slideshow q me muestra 3 imagenes y asi infinitamente pero yo quiero que solo me muestre una sola vez y se quede ...
  #1 (permalink)  
Antiguo 07/02/2007, 16:20
Avatar de xplorador  
Fecha de Ingreso: enero-2002
Ubicación: Peru
Mensajes: 105
Antigüedad: 22 años, 3 meses
Puntos: 0
Ayuda con action script en slideshow

HOla amigos...tengo un slideshow q me muestra 3 imagenes y asi infinitamente pero yo quiero que solo me muestre una sola vez y se quede estatico en la tercera foto. estado viendo el fla pero no puedo tiene muhos codigos.
aqui pego el action script q tiene a lo mejro me digan q parametro variar para que pare la animacion:
Código:
var width = 792;
var height = 411;
var sprite_count = 4;
var iterator = 0;
var delay_value = 0;
var delay_count = 24;
var can_change = true;
var last_slide = slide0;
framerate = 30;
slide0._visible = false;
slide0._alpha = 0;
slide0.inc_alpha = 2;
slide0.started = false;
slide0.onEnterFrame = function ()
{
    if (_root.iterator == 0)
    {
        this._visible = true;
        if (!this.started)
        {
            this.button.useHandCursor = true;
            this.started = true;
            this._alpha = 0;
            this.swapDepths(_root.sprite_count - 1);
            this.swapDepths(_root.sprite_count);
        } // end if
        if (_root.can_change)
        {
            this._alpha = this._alpha + this.inc_alpha;
        } // end if
        if (this._alpha >= 100)
        {
            if (_root.delay_value >= _root.delay_count)
            {
                this.started = false;
                this.button.useHandCursor = false;
                _root.can_change = true;
                _root.delay_value = 0;
                _root.iterator = _root.iterator + 1;
                if (_root.iterator == _root.sprite_count)
                {
                    _root.iterator = 0;
                } // end if
            }
            else
            {
                _root.can_change = false;
                _root.delay_value = _root.delay_value + 1;
            } // end if
        } // end if
    } // end else if
};
slide1._visible = false;
slide1._alpha = 0;
slide1.inc_alpha = 2;
slide1.started = false;
slide1.onEnterFrame = function ()
{
    if (_root.iterator == 1)
    {
        this._visible = true;
        if (!this.started)
        {
            this.button.useHandCursor = true;
            this.started = true;
            this._alpha = 0;
            this.swapDepths(_root.sprite_count - 1);
            this.swapDepths(_root.sprite_count);
        } // end if
        if (_root.can_change)
        {
            this._alpha = this._alpha + this.inc_alpha;
        } // end if
        if (this._alpha >= 100)
        {
            if (_root.delay_value >= _root.delay_count)
            {
                this.started = false;
                this.button.useHandCursor = false;
                _root.can_change = true;
                _root.delay_value = 0;
                _root.iterator = _root.iterator + 1;
                if (_root.iterator == _root.sprite_count)
                {
                    _root.iterator = 0;
                } // end if
            }
            else
            {
                _root.can_change = false;
                _root.delay_value = _root.delay_value + 1;
            } // end if
        } // end if
    } // end else if
};
slide2._visible = false;
slide2._alpha = 0;
slide2.inc_alpha = 2;
slide2.started = false;
slide2.onEnterFrame = function ()
{
    if (_root.iterator == 2)
    {
        this._visible = true;
        if (!this.started)
        {
            this.button.useHandCursor = true;
            this.started = true;
            this._alpha = 0;
            this.swapDepths(_root.sprite_count - 1);
            this.swapDepths(_root.sprite_count);
        } // end if
        if (_root.can_change)
        {
            this._alpha = this._alpha + this.inc_alpha;
        } // end if
        if (this._alpha >= 100)
        {
            if (_root.delay_value >= _root.delay_count)
            {
                this.started = false;
                this.button.useHandCursor = false;
                _root.can_change = true;
                _root.delay_value = 0;
                _root.iterator = _root.iterator + 1;
                if (_root.iterator == _root.sprite_count)
                {
                    _root.iterator = 0;
                } // end if
            }
            else
            {
                _root.can_change = false;
                _root.delay_value = _root.delay_value + 1;
            } // end if
        } // end if
    } // end else if
};
slide3._visible = false;
slide3._alpha = 0;
slide3.inc_alpha = 2;
slide3.started = false;
slide3.onEnterFrame = function ()
{
    if (_root.iterator == 3)
    {
        this._visible = true;
        if (!this.started)
        {
            this.button.useHandCursor = true;
            this.started = true;
            this._alpha = 0;
            this.swapDepths(_root.sprite_count - 1);
            this.swapDepths(_root.sprite_count);
        } // end if
        if (_root.can_change)
        {
            this._alpha = this._alpha + this.inc_alpha;
        } // end if
        if (this._alpha >= 100)
        {
            if (_root.delay_value >= _root.delay_count)
            {
                this.started = false;
                this.button.useHandCursor = false;
                _root.can_change = true;
                _root.delay_value = 0;
                _root.iterator = _root.iterator + 1;
                if (_root.iterator == _root.sprite_count)
                {
                    _root.iterator = 0;
                } // end if
            }
            else
            {
                _root.can_change = false;
                _root.delay_value = _root.delay_value + 1;
            } // end if
        } // end if
    } // end else if
};
__________________
Adictoshp.org
  #2 (permalink)  
Antiguo 07/02/2007, 16:31
Avatar de xplorador  
Fecha de Ingreso: enero-2002
Ubicación: Peru
Mensajes: 105
Antigüedad: 22 años, 3 meses
Puntos: 0
Re: Ayuda con action script en slideshow

probando probando ya me dio la ultima linea le cambie a :
_root.delay_value = 1;

me funciona..no se si es lo correcto pero funcionaa.

Graciass comunidaddd
__________________
Adictoshp.org
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:27.