Código actionscript:
Ver originalonClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent = (loading / total) * 100;
per = int(percent);
percentage = per + "%";
loadBar._width = per;
if (per > 99)
{
_parent.gotoAndStop(2);
//_parent.gotoAndPlay("fondo");
}
}