centrering af movieclip i billedgalleri
- og nu med point!Hvordan centrerer man jpg-billeder af forskellig bredde i movieclip på stage i dette script?
(jf. http://www.eksperten.dk/spm/685536)
import mx.transitions.*;
createEmptyMovieClip("a",1); a._alpha=0;
createEmptyMovieClip("b",2); b._alpha=0;
(f=function(){
clearInterval(i); p=(c==a?b:a);
(m=new MovieClipLoader()).loadClip("./"+((n=++n%5)||(n=1))+".jpg",p);
m.onLoadComplete=function(){
new Tween(c,"_alpha",0,100,0,40);
Object(new Tween(c=p,"_alpha",0,0,100,40)).onMotionFinished = function() {
i=setInterval(f, 3000);
}
}
}).call();