
Код:
fscommand("allowscale", "false");
//Стиль для текса подписей (CSS)
var styles = new TextField.StyleSheet();
styles.setStyle("bodyText",
{fontFamily: 'myTahoma',
color: '#ffffff',
textAlign: 'center',
fontSize: '12px' }
);
this.dockActions = function(label) {
switch(label) {
case 'Background':
getURL("javascript: HideBrowser(); HideLogin();");
break;
case 'About':
getURL("text.php?id=1", "MainFrame");
getURL("javascript: ShowBrowser();");
break;
case 'Sites':
getURL("text.php?id=2", "MainFrame");
getURL("javascript: ShowBrowser();");
break;
case 'Graphics':
getURL("text.php?id=3", "MainFrame");
getURL("javascript: ShowBrowser();");
break;
case 'Flash':
getURL("www.flasher.ru");
getURL("javascript: ShowBrowser();");
break;
case 'Contacts':
getURL("text.php?id=5", "MainFrame");
getURL("javascript: ShowBrowser();");
break;
case 'Secret':
getURL("javascript: ShowLogin();");
break;
default:
getURL("404.html", "_top");
}
}
switch(_root.language) {
case 'lv':
var myArray = [
{ id: 'background', label: 'Background', description: 'Aizvērt logus' },
{ id: 'myUsers', label: 'About', description: 'Par mums' },
{ id: 'mySites', label: 'Sites', description: 'Saites' },
{ id: 'myGraphics',label: 'Graphics', description: 'Grafika' },
{ id: 'myFlash', label: 'Flash', description: 'Flash' },
{ id: 'myContacts', label: 'Contacts', description: 'Kontakti' },
{ id: 'myLock', label: 'Secret', description: 'Slēptā sadaļa' }
];
break;
case 'en':
var myArray = [
{ id: 'background', label: 'Background', description: 'Hide window' },
{ id: 'myUsers', label: 'About', description: 'About us' },
{ id: 'mySites', label: 'Sites', description: 'Sites' },
{ id: 'myGraphics',label: 'Graphics', description: 'Graphics' },
{ id: 'myFlash', label: 'Flash', description: 'Flash' },
{ id: 'myContacts', label: 'Contacts', description: 'Contacts' },
{ id: 'myLock', label: 'Secret', description: 'Log In' }
];
break;
default:
var myArray = [
{ id: 'Films', label: 'Films', description: 'Кіно' },
{ id: 'Musik', label: 'Musik', description: 'Музика' },
{ id: 'Forum',label: 'Graphics', description: 'Форум' },
{ id: 'Office', label: 'Flash', description: 'Мій кабінет' },
{ id: 'Failu', label: 'Failu', description: 'Файли' }
];
}
var dockTemplate = {
layout: "center", /* top | right | bottom | left | *rotation* */
icon_size: 128,
icon_min: 70,
icon_max: 128,
icon_spacing: 30,
items: myArray,
span: 170,
amplitude: 90,
callback: this.dockActions
}
this.attachMovie('Dock', 'menu_mc', 1, dockTemplate);
this.menu_mc._x = Stage.width / 2;
this.menu_mc._y = Stage.height/ 2;