<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[scroll di thumb]]></title><description><![CDATA[<p dir="auto">salve gente, sono nuovo e spero possiate darmi una mano. Ho fatto un giro ma non ho trovato nulla in mio aiuto. Ho una galleria di immagini con relative thumb che vengono caricate da file xml. Vorrei far scorrere le thumb come in <a href="http://www.michaelprince.com/" rel="nofollow ugc">questo</a> sito ma non riesco a farlo.<br />
C'è un limite al numero delle foto inserite sempre riguardo allo scorrimento?<br />
Vi posto anche il codice della gallery a 2 pulsanti fashion01 fashion02 così si capisce meglio..</p>
<pre><code>fashion01_arr = new Array();
fashion02_arr = new Array();
btnRef_arr = new Array();
my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success) {
    if (success) {
        searchXML();
    } else {
        trace("xml not loaded");
    }
};
my_xml.load("images.xml");
function searchXML() {
    var allxml = my_xml.firstChild.firstChild;
    do {
        var arr = _root[allxml.nodeName+"_arr"];
        var ch = allxml.firstChild;
        do {
            arr.push(ch.childNodes);
        } while (ch=ch.nextSibling);
    } while (allxml=allxml.nextSibling);
}
fash01_btn.onRelease = function() {
    thumbRemover();
    holder_mc.SequentailImages(fashion01_arr);
};
fash02_btn.onRelease = function() {
    thumbRemover();
    holder_mc.SequentailImages(fashion02_arr);
};
MovieClip.prototype.SequentailImages = function(images) {
    this.curImage = 0;
    this.images = images;
    this.ImageFromSequence();
    this.onEnterFrame = function() {
        var clipLoaded = this.imageClip.getBytesLoaded();
        var clipTotal = this.imageClip.getBytesTotal();
        var percent = clipLoaded/clipTotal;
        if (percent == 1) {
            this.imageClip.onRollOver = function() {
                this._alpha = 100;
            };
            this.imageClip.onRollOut = this.imageClip.onDragOut=function () {
                this._alpha = 50;
            };
            this.imageClip.onRelease = function() {
                image_mc.loadMovie(this.id.images[this.idx]+".jpg");
            };
            this.imageClip.id = this;
            this.imageClip.idx = this.curImage;
            this.curImage++;
            if (this.curImage&gt;=this.images.length) {
                this.onEnterFrame = undefined;
                imageGen(images);
            } else {
                this.ImageFromSequence();
            }
        }
    };
};
MovieClip.prototype.ImageFromSequence = function() {
    this.imageClip = this.createEmptyMovieClip("thumb"+this.curImage+"_mc", this.curImage);
    this.imageClip.loadMovie(this.images[this.curImage]+"_th.jpg");
    this.imageClip._x = 65*this.curImage;
    this.imageClip._alpha = 50;
    btnRef_arr.push(this.imageClip);
};
function thumbRemover() {
    for (var n = 0; n&lt;btnRef_arr.length; n++) {
        btnRef_arr[n].removeMovieClip();
    }
}
MovieClip.prototype.alpha = function(vel, to) {
    this.vel = vel;
    this.to = to;
    this.alpha_init = this._alpha;
    this.onEnterFrame = function() {
        updateAfterEvent();
        if (this.to != undefined &amp;&amp; this.vel != undefined) {
            if (this.to&gt;this.alpha_init) {
                if (this._alpha&lt;=100) {
                    this._alpha += this.vel;
                } else {
                    this.onEnterFrame = null;
                }
            } else {
                if (this._alpha&gt;this.to) {
                    this._alpha -= this.vel;
                } else {
                    this.onEnterFrame = null;
                }
            }
        }
    };
};
var randomNum, randomNumLast, xpos, ypos = 0;
_global.numPause = 4000;
_global.fadetime = 2;
image_mc.createEmptyMovieClip("loader1_mc", 2);
image_mc.createEmptyMovieClip("loader2_mc", 1);
this.createEmptyMovieClip("watcher_mc", 100);
function swapPlace(clip, num) {
    eval(clip).swapDepths(eval("image_mc.loader"+num+"_mc"));
}
function loadImages(data, num) {
    if (i == undefined || i == 2) {
        i = 2;
        createLoader(i, data, num);
        i = 1;
    } else if (i == 1) {
        createLoader(i, data, num);
        i = 2;
    }
}
function createLoader(i, data, num) {
    thisLoader = eval("image_mc.loader"+i+"_mc");
    thisLoader._alpha = 0;
    thisLoader.loadMovie(data[num]+".jpg");
    watcher_mc.onEnterFrame = function() {
        var picLoaded = thisLoader.getBytesLoaded();
        var picBytes = thisLoader.getBytesTotal();
        if (isNaN(picBytes) || picBytes&lt;4) {
            return;
        }
        if (picLoaded/picBytes&gt;=1) {
            swapPlace("image_mc.loader2_mc", 1);
            thisLoader.alpha(_global.fadeTime, 100);
            timerInterval = setInterval(imageGen, _global.numPause, data);
            delete this.onEnterFrame;
        }
    };
}
function imageGen(data) {
    if (p == undefined || p == data.length) {
        p = 0;
    }
    loadImages(data, p);
    p++;
    clearInterval(timerInterval);
}
</code></pre>
<p dir="auto">Grazie milleeee!!</p>
]]></description><link>https://dev.connect.gt/topic/22193/scroll-di-thumb</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 22:06:09 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/22193.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Nov 2006 17:04:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to scroll di thumb on Mon, 27 Nov 2006 20:24:45 GMT]]></title><description><![CDATA[<p dir="auto">Grazie Onsitus..ho provato ma non riesco a far interagire la funzione di scroll con il mio codice..cioè se inserisco o non fa nulla..o non compaiono più le foto..o ne compare solo una..hmmm..</p>
]]></description><link>https://dev.connect.gt/post/402051</link><guid isPermaLink="true">https://dev.connect.gt/post/402051</guid><dc:creator><![CDATA[spirow]]></dc:creator><pubDate>Mon, 27 Nov 2006 20:24:45 GMT</pubDate></item><item><title><![CDATA[Reply to scroll di thumb on Mon, 27 Nov 2006 18:25:15 GMT]]></title><description><![CDATA[<p dir="auto">Buonasera spiro,</p>
<p dir="auto">se puo essere d'aiuto <a href="http://www.kirupa.com/developer/mx2004/thumbnails.htm" rel="nofollow ugc">ecco un tutorial</a></p>
<p dir="auto"><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=2190ae3dadd" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://dev.connect.gt/post/402045</link><guid isPermaLink="true">https://dev.connect.gt/post/402045</guid><dc:creator><![CDATA[onsitus]]></dc:creator><pubDate>Mon, 27 Nov 2006 18:25:15 GMT</pubDate></item></channel></rss>