http://www.v2online.it/articoli/phot...ion_howto.html
questo è il link, l'esempio che cè online.. è interessante... ma se provo a scaricare il fla e lo pubblico online, non accade nulla.
dove sbaglio?
grazie
ciao
http://www.v2online.it/articoli/phot...ion_howto.html
questo è il link, l'esempio che cè online.. è interessante... ma se provo a scaricare il fla e lo pubblico online, non accade nulla.
dove sbaglio?
grazie
ciao
figlio perso e MAI ritrovato....?
praticamente vorrei implementare su questo slideshow di AND80 la versione base.. l'effetto... ma si blocca al secondo caricamento...ed inoltre l'effetto rimane il "satured".. in pratica vorrei riproporre lo stesso effetto su tutte le foto...codice:#include "Preload.as" var p = new Preload(); var index:Number = 1; p.onLoadStart = function(target:MovieClip) { target._alpha = 0; }; p.onLoadProgress = function(target:MovieClip) { target._parent.testo.text = this[target._name+"__perc"]+"%"; }; p.onLoadInit = function(target:MovieClip) { index++; target._alpha = 100; var effect = new PhotoMatrixMotion(target, "luminance", "normal", None.easeNone, 30, false); effect.onMotionFinished = function(){ trace("richiama"); var a = setInterval(function () { clearInterval(a); var effect = new PhotoMatrixMotion(target, "normal", "satured", None.easeNone, 30, false); effect.onMotionFinished = function() { mc.loadMovie("http://www.xxx.it/img/"+index+".jpg"); }; }, 5000); }; }; var mc:MovieClip = this.createEmptyMovieClip("mc", 1); mc.loadMovie("http://www.xxx.it/img/"+index+".jpg"); p.start(mc);
grazie..
ciao
figlio perso e MAI ritrovato....?
RISOLTO!
più facile di così... non si può...codice:var interceptMovieClip:Function = function (target_mc:MovieClip):MovieClip { var temp:MovieClip = (target_mc._name == "firstMC") ? secondMC : firstMC; return temp; }; var slideShow:Function = function (target:MovieClip, index:Number, shifting:Number) { var other = interceptMovieClip(target); var int_index = index; var mclo:MovieClipLoader = new MovieClipLoader(); var mcli:Object = new Object(); mcli.onLoadError = function(target:MovieClip, errorCode:String) { if (errorCode == "URLNotFound") { slideShow(target, index, shifting); } }; mcli.onLoadInit = function(target:MovieClip):Void { trace("img/"+int_index+".jpg"); int_index += 2; var t = new PhotoMatrixMotion(target, "luminance", "normal", None.easeNone, 30, false); t.onMotionFinished = function() { var a = setInterval(function () { clearInterval(a); var t = new PhotoMatrixMotion(target, "luminance", "normal", None.easeNone, 30, false); t.onMotionFinished = function() { mclo.loadClip("img/"+int_index+".jpg", target); target.swapDepths(other); }; }, shifting*1000); }; }; mclo.addListener(mcli); mclo.loadClip("img/"+int_index+".jpg", target); }; // var time_to_slide:Number = 5; var firstMC:MovieClip = this.createEmptyMovieClip("firstMC", 1); var index1:Number = 1; var secondMC:MovieClip = this.createEmptyMovieClip("secondMC", 2); var index2:Number = 2; slideShow(firstMC, index1, time_to_slide*2); setTimeout(slideShow, 5000, secondMC, index2, time_to_slide*2);
scusate... il problema.. che apro il flash... 1 / 2 volte l'anno..
mi terrò più aggiornato!
promesso...![]()
figlio perso e MAI ritrovato....?