Combined Code
frame 1 {
stop();
var empty = new ContextMenu();
empty.hideBuiltInItems();
_root.menu = empty;
onEnterFrame = function () {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
textBox.text = Math.round(getPercent * 100) + '%';
this.loadBar._width = getPercent * 100 * 3;
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
delete onEnterFrame;
play();
}
};
}
movieClip 4 {
}
frame 2 {
function emptyFunction() {}
function openVisualLink() {
getURL('https://www.deviantart.com/pixeljeff', '');
}
function openModLink() {
getURL('https://modarchive.org/index.php?request=view_by_moduleid&query=135326', '');
}
stop();
var credits = new ContextMenu();
credits.hideBuiltInItems();
var link1 = new ContextMenuItem('Music: DRAX - Christmas Memories', openModLink);
var link2 = new ContextMenuItem('Visual by: pixeljeff', openVisualLink);
var menu1 = new ContextMenuItem('when the snow falls.swf', emptyFunction);
var menu2 = new ContextMenuItem('24.12.2021 | MrFreeware', emptyFunction);
menu1.separatorBefore = true;
credits.customItems.push(link1);
credits.customItems.push(link2);
credits.customItems.push(menu1);
credits.customItems.push(menu2);
_root.menu = credits;
}
movieClip 149 {
}