that’s a pretty complicated way of doing it.
make a rectangle, convert it to a MovieClip and give it an instance name of something like loaderBar, which is what i will use.
This goes in the frame after the frame which loads the content into the _root.content movieclip.
percentloaded = (_root.content.getBytesLoaded() / _root.content.getBytesTotal())*100;
loaderBar._xScale = Math.round(percentLoaded);
in the next frame, we want to see if the movie has completed loading, so we use this simple test:
if (_root.content.getBytesLoaded == _root.content.getBytesTotal) {
_root.transition.gotoAndPlay("open");
} else {
gotoAndPlay(_currentFrame-1);
}
also, i should point out, the loaderBar should be on a seperate layer from the actionscript because it must last over the 2 frames of the actions, and must not be seperated into keyframes.