HI all Im using the preloader kirupa tutorial, but the problem is: I already have a flash site done, and it is all in the first frame of the timeline (in various layers of course).
So how can I add a preloader using only the first frame, without screwing up my site?
Heres the current stuff:
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
_root.gotoAndStop(3);
}
and gotoAndPlay(1); statement on the second frame to keep the stuff looping and loading.
Im trying to add the loadBar and loadText items with the ActionScript and frames to a movieClip. Then placing the movieClip on a layer of my Main movie (the site) but nothing happens…
help pleeeease?