@broly
ti sarebbero bastati 5 min. :di56:
@claire
visto che prima non hai capito..
allora ti posto un'es. concreto per risolvere..
se serve ti mando un fla!codice:_global.mainTL = this; var usingThumb = false; scroller_mc._visible = false; readText = new loadVars (); readText.onLoad = function () { myText_txt.htmlText = this.myText; if (myText_txt.maxscroll < 2) { scroller_mc._visible = false; } else { scroller_mc._visible = true; } myText_txt.scroll = 0; scroller_mc.thumb_mc._y = 0; var percentVisible = (myText_txt._height / myText_txt.textHeight) * 100; scroller_mc.thumb_mc._yscale = percentVisible; }; short_mc.onRelease = function () { readText.load ("smText.txt"); }; medium_mc.onRelease = function () { readText.load ("medText.txt"); }; long_mc.onRelease = function () { readText.load ("longText.txt"); }; myText_txt.onScroller = function () { if (!usingThumb) { var trackLength = scroller_mc.track_mc._height - scroller_mc.thumb_mc._height; var scrollPos = (this.scroll - 1) / (this.maxscroll - 1); scroller_mc.thumb_mc._y = trackLength * scrollPos; } };
ciaooo

ciaooo
Rispondi quotando