loadMovie mv
Hej EksperterJeg prøver at loade 4 billeder ind i nogle MovieClips.
Men kan ikke lige få det til at virke.
Jeg kan f.eks. ikke trace indre_mc...?
billede = function (ydre_mc,indre_mc) {
this.ydre_mc.indre_mc.loadMovie("http://billeder/bla.jpg");
this.onEnterFrame = function() {
bl = _root.billeder_mc.ydre_mc.indre_mc.getBytesLoaded();
bt = _root.billeder_mc.ydre_mc.indre_mc.getBytesTotal();
procent = Math.round(bl/bt)*100;
/* if (procent == 100 && bt>50) {
this.play();
startNu2 = "1"
delete this.onEnterFrame;
}
*/
};
trace(indre_mc)
trace(ydre_mc)
ydre_mc.onEnterFrame = function(){
if (this.indre_mc.getBytesLoaded() >10 && this.indre_mc.getBytesTotal() == this.indre_mc.getBytesLoaded()){
// billedet er loaded
this.indre_mc._x = -this.indre_mc._width/2;
this.indre_mc._y = -this.indre_mc._height/2;
}
}
}
billede(ydre1_mc,indre1_mc);
billede(ydre2_mc,indre2_mc);
billede(ydre3_mc,indre3_mc);
billede(ydre4_mc,indre4_mc);
