Combined Code
frame 1 {
Stage.scaleMode = 'exactFit';
}
movieClip 5 {
frame 1 {
gotoAndStop(1 + random(2));
}
}
movieClip 6 {
}
movieClip 7 {
}
movieClip 8 {
frame 80 {
gotoAndPlay(80 + random(120));
}
}
movieClip 9 {
frame 1 {
function onSelectURLItem(obj, menuItem) {
getURL(menuItem.url, '_blank');
}
var items = [];
items[0] = {'label': 'yes for sure .com'};
items[1] = {'label': 'by Rafaël Rozendaal, 2010', 'url': 'http://www.newrafael.com'};
var defaultItems = {'zoom': true, 'quality': true, 'loop': false, 'play': false, 'print': true, 'rewind': false, 'forwardAndBack': false, 'save': true};
var enableTextItems = false;
var myContextMenu = new ContextMenu();
var i = 0;
while (i < items.length) {
var item = new ContextMenuItem(items[i].label, function () {});
if (items[i].separatorBefore != null) {
item.separatorBefore = items[i].separatorBefore;
}
if (items[i].url != null) {
item.url = items[i].url;
item.onSelect = onSelectURLItem;
} else {
item.enabled = enableTextItems;
}
myContextMenu.customItems.push(item);
++i;
}
for (var s in defaultItems) {
myContextMenu.builtInItems[s] = defaultItems[s];
}
this._parent.menu = myContextMenu;
}
}