I am creating a preload bar, and I want my registration point in the centre, what is the actionscript for that? I have tried:
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent38;
_root.loadText = Math.round(getPercent100)+"%";
if (bytes_loaded == bytes_total) {
_root.gotoAndStop(3);
}
but doesn’t work