I am trying to make a preloader where rather than have a bar which gets bigger, I want a movieClip to move across the stage. I am using the following code but it doesn’t work:
if your movie clip is as big as 1200 (weight) then i don’t see the problem! Else, replace the *12 with the *3+100 or something…Helped you?
Or…
you could replace the:
Make only one frame, not 2 and add this to the main frame! the movieclip that will move is named ‘mc’ (without the quotas). It worked for me!!
stop();
nik=mc._x;
_root.onEnterFrame= function() {
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total*100;
mc._x=nik+getPercent*2; //instead of *2 you can add *12 or whatever you want
if (bytes_loaded == bytes_total) {
//do when movie is loaded
}
}
Your code was missing the “_root.onEnterFrame= function() {”