Combined Code
frame 1 {
WP = 200;
HP = 20;
WM = 5;
_root.createEmptyMovieClip('preloader', 0);
preloader.lineStyle(3, 0);
preloader.beginFill(13421772, 100);
preloader.moveTo(0, 0);
preloader.lineTo(WP, 0);
preloader.lineTo(WP, HP);
preloader.lineTo(0, HP);
preloader.endFill();
_root.preloader.createEmptyMovieClip('poloska', 1);
preloader.poloska.lineStyle(1, 0);
preloader.poloska.beginFill(0, 100);
preloader.poloska.moveTo(0, 0);
preloader.poloska.lineTo(WP, 0);
preloader.poloska.lineTo(WP, HP);
preloader.poloska.lineTo(0, HP);
preloader.poloska.endFill();
_root.preloader.createEmptyMovieClip('preloadermask', 2);
preloader.preloadermask.lineStyle(3, 0);
preloader.preloadermask.beginFill(13421772, 50);
preloader.preloadermask.moveTo(WM, WM);
preloader.preloadermask.lineTo(WP - WM, WM);
preloader.preloadermask.lineTo(WP - WM, HP - WM);
preloader.preloadermask.lineTo(WM, HP - WM);
preloader.preloadermask.endFill();
preloader.poloska.setMask(preloader.preloadermask);
preloader._x = (Stage.width - WP) / 2;
preloader._y = (Stage.height - HP) / 2;
onEnterFrame = function () {
_root.preloader.poloska._xscale = Math.round((this.getBytesLoaded() / this.getBytesTotal()) * 100);
if (this.getBytesLoaded() >= this.getBytesTotal()) {
preloader.removeMovieClip();
delete this.onEnterFrame;
play();
}
};
stop();
}
frame 2 {
stop();
}
movieClip 5 {
}
movieClip 14 {
}
movieClip 20 {
}
movieClip 22 {
}
movieClip 36 {
}
movieClip 44 {
}
movieClip 64 {
}
button 66 {
on (release) {
getURL('http://swfpony.tumblr.com/', '_blank');
}
}