1°frame:
btload = _root.getBytesLoaded();
totbt = _root.getBytesTotal();
sclbar = btload*100/totbt;
sclbar = Math.round(sclbar);
setProperty (_root.orangebar, _xscale, sclbar);
barwid = getProperty(_root.orangebar, _width)
barwid = barwid + getProperty(_root.orangebar, _x)
setProperty (_root.ldper, _x, barwid);
//setProperty (this.ldbar, _xscale, sclbar);
//trace (sclbar);
// trace(bytloaded);

2°frame:
if (btload>=totbt) {
gotoAndPlay ("main", 1);
//trace ("loading complete");
} else {
gotoAndPlay (1);
}