Este es el codigo, que tengo que modificar o borrar para que no funcione el boton del codigo????
Gracias
Código :
#initclip 1 MovieClip.prototype.preloadMovie = function (purl) { this.loadMovie(purl); _global[this + "_onPreload"] = this.onPreload; listenLoading(this); }; _global.listenLoading = function (mc) { if (_level0.loadListener == undefined) { _level0.createEmptyMovieClip("loadListener", 56471); var ll = _level0.loadListener; ll.mmcs = []; ll.mmcs.push(mc); ll.onEnterFrame = function () { for (var i in this.mmcs) { var cur = eval(this.mmcs[i]); var percentage = Math.floor(100 * cur.getBytesLoaded() / cur.getBytesTotal()); cur.percentage = isNaN(percentage) ? (0) : (percentage); if (percentage == 100) { this.mmcs.splice(i, 1); cur.onPreload = _global[cur + "_onPreload"]; delete _global[cur + "_onPreload"]; cur.onPreload(); } // end if } // end of for...in }; } else { _level0.loadListener.mmcs.push(mc); } // end else if }; function ThumbnailsClass() { this.thW = this._width; this.thH = this._height; this._xscale = this._yscale = 100; this.init(); } // End of the function var t = ThumbnailsClass.prototype = new MovieClip(); t.$drawRectangle = function (name, w, h, depth, targ) { targ.createEmptyMovieClip(name, depth); with (targ[name]) { beginFill(this.shCol); lineTo(w, 0); lineTo(w, h); lineTo(0, h); lineTo(0, 0); endFill(); } // End of with targ[name]._alpha = this.shAlpha; }; t.init = function () { this.ac = 1; this.createEmptyMovieClip("thumbs", 100); this.$drawRectangle("maska", this.thW, this.thH, 99, this); this.thumbs.setMask(this.maska); if (this.thArr) { this.startEngine(); } // end if }; t.startEngine = function () { if (this.thOr == "horizontal") { this.maska.onEnterFrame = function () { if (this.hitTest(_level0._xmouse, _level0._ymouse, false)) { var x = this._parent._xmouse * (1 - this._parent.thumbs._width / this._width); var difference = this._parent.thumbs._x - x; this._parent.thumbs._x = this._parent.thumbs._x - difference / this._parent.velocity; } // end if }; } else if (this.thOr == "vertical") { this.maska.onEnterFrame = function () { if (this.hitTest(_level0._xmouse, _level0._ymouse, false)) { var y = this._parent._ymouse * (1 - this._parent.thumbs._height / this._height); var difference = this._parent.thumbs._y - y; this._parent.thumbs._y = this._parent.thumbs._y - difference / this._parent.velocity; } // end if }; } // end else if this.loadThumb(); }; t.loadThumb = function () { this.thumbs.createEmptyMovieClip("th" + this.ac, 9000 + this.ac); this.curMC = this.thumbs["th" + this.ac]; this.curMC.onPreload = function () { this._parent._parent.onPreload(); }; this.curMC.preloadMovie(this.thumbPath + this.thArr[this.ac] + ".swf"); }; t.onPreload = function () { if (this.thOr == "horizontal") { var prevxw = this.thumbs["th" + (this.ac - 1)]._x + this.thumbs["th" + (this.ac - 1)]._width; this.curMC._x = prevxw + (this.ac ? (this.thD) : (0)); } else { var prevyw = this.thumbs["th" + (this.ac - 1)]._y + this.thumbs["th" + (this.ac - 1)]._height; this.curMC._y = prevyw + (this.ac ? (this.thD) : (0)); } // end else if this.curMC._xscale = this.curMC._yscale = 9.990000E+001; this.curMC.no = this.ac; this.$onThumbLoad(this.curMC); this.curMC.onRollOver = function () { this._parent._parent.$onThumbOver(this); }; this.curMC.onRollOut = function () { this._parent._parent.$onThumbOut(this); }; this.curMC.onPress = function () { this._parent._parent.$onThumbPress(this); }; this.curMC.onRelease = function () { this._parent._parent.$onThumbRelease(this); }; this.curMC.onReleaseOutside = function () { this._parent._parent.$onThumbReleaseOutside(this); }; ++this.ac; if (this.ac < this.thArr.length) { this.loadThumb(); } else { if (this.thumbs._width < this.thW && this.thOr == "horizontal") { this.thumbs._x = (this.thW - this.thumbs._width) / 2; this.maska.onEnterFrame = function () { }; } // end if if (this.thumbs._height < this.thH && this.thOr == "vertical") { this.thumbs._y = (this.thH - this.thumbs._height) / 2; this.maska.onEnterFrame = function () { }; } // end if this.onThumbsLoaded(); delete this.curMC; } // end else if }; t.loadThumbnails = function (arr, path) { for (var i in this.thumbs) { if (typeof(this.thumbs[i]) == "movieclip") { removeMovieClip (this.thumbs[i]); } // end if } // end of for...in this.ac = 0; this.thArr = arr; this.thumbPath = path; this.startEngine(); }; t.makeThumbnails = function (arr, w, h, d, v, path) { this.thumbs.removeMovieClip(); this.maska.removeMovieClip(); this.thArr = arr; this.thW = w; this.thH = h; this.thArr = arr; this.thD = d; this.velocity = v; this.thumbPath = path; this.init(); }; t.$onThumbRelease = function (mc) { if (mc != this.active) { this.active.rect.onEnterFrame = function () { this._alpha = this._alpha + this._parent._parent._parent.shAlpha / this._parent._parent._parent.shOut; if (this._alpha >= this._parent._parent._parent.shAlpha) { this.onEnterFrame = undefined; } // end if }; this.active = mc; } // end if this.onThumbRelease(mc); }; t.$onThumbLoad = function (mc) { this.$drawRectangle("rect", mc._width, mc._height, 9, mc); this.onThumbLoad(mc); }; t.$onThumbOver = function (mc) { mc.rect.onEnterFrame = function () { this._alpha = this._alpha - 100 / this._parent._parent._parent.shIn; if (this._alpha <= 0) { this.onEnterFrame = undefined; } // end if }; this.onThumbOver(mc); }; t.$onThumbReleaseOutside = t.$onThumbOut = function (mc) { if (mc != this.active) { mc.rect.onEnterFrame = function () { this._alpha = this._alpha + this._parent._parent._parent.shAlpha / this._parent._parent._parent.shOut; if (this._alpha >= this._parent._parent._parent.shAlpha) { this.onEnterFrame = undefined; this._alpha >= this._parent._parent._parent.shAlpha; } // end if }; } // end if this.onThumbReleaseOutside(mc); this.onThumbOut(mc); }; Object.registerClass("ThumbnailerShader", ThumbnailsClass); #endinitclip
Muchas gracias
palitosci