i’m making a preloading in which the animation is a mc externally loaded. but the problem is that i would syncronize the percent loaded and the position (frame number in the time line) on the mc loaded.
The percent preloading work fine, but i can’t comunicate with mc that remain in it’s first frame.
in the main movie
on the first frame:
flag = 0;
i = 0;
CreateEmptyMovieClip(“mc”, 2);
loadMovie(“mcarica.swf”, “mc”);
on the second:
i = i++;
flag = 100-i;
bytes_loaded = Math.round(getBytesLoaded());
bytes_total = Math.round(getBytesTotal());
getPercent = bytes_loaded/bytes_total;
varloadtxt = Math.round(getPercent*100)+"%";
vaia=((bytes_total/100)*i)
if (bytes_loaded <= vaia) {
_root.mc.gotoAndStop(i);
}
if (bytes_loaded == bytes_total) {
gotoAndPlay(“Scena 1”, 1);
unLoadMovie(“mc”)
}
on the third:
gotoAndPlay(2);
my mc (called “mc” is on second and third frame (only the second is the keyframe).
i notice when you create the mc you dont position it anywhere.
If you havent then you need to set its ._x and ._y
If this doesnt work try and go to the save option and check to see if you can save it to flash 5 as i have been told there should be the option to. then post your 2 flash 5 flas here
Creating engaging and entertaining content for designers and developers since 1998.