All pastes #386829 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-03-08 22:21 UTC
rendered paste body
MovieClip.prototype._LOADER = function(path, afterLoadFunction) {
	this.createEmptyMovieClip("loaderContainer", 535);
	this["loaderContainer"].loadMovie(path, 0);
	this.onEnterFrame = function() {
		this.loaderPercent = Math.round(100*this["loaderContainer"].getBytesLoaded()/this["loaderContainer"].getBytesTotal());
		trace(this.loaderPercent);
		if (this.loaderPercent == 100) {
			delete this.onEnterFrame;
			afterLoadFunction;
		}
	};
};
function ttest() {
	trace("figgn???");
}
mc._LOADER("img.jpg", "ttest");