hab deinen code mal ein bissal strukturiert und dabei auch gleich mal getestet... und es fluppt doch ganz gut soweit. die prozente werden schön bis 100 hochgezählt.
PHP-Code:
_root.createEmptyMovieClip( "container",22 );
_root.container.loadMovie( "xyz.swf" );
_root.container._x = 100;
_root.container._y = 100;
//_root.container.stop();
_root.onEnterFrame = function() {
var loaded = _root.container.getBytesLoaded();
var total = _root.container.getBytesTotal();
var percent = Math.round( loaded / total * 100 );
_root.instanznameDeinesTextfeldes.text = percent + "%";
if ( percent == 100 && loaded > 0 ) {
delete _root.onEnterFrame;
//_root.container.play();
}
};
cheers,
sal