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 };