PDA

Просмотр полной версии : Help!!!


Shad0w
16.04.2003, 13:08
Люди, помогите пожалуйста. Готовится бесплатный интересный проект. И безумно нужно следующее. :)

Как сделать, чтоб flash грузил сцену в зависимости от времени суток. Тоесть ночью, к примеру, одну, а утром, другую?

Огромная благодарность.

fiot
16.04.2003, 13:39
myDate = new Date(hours);
hours = myDate.getHours();
_root.onEnterFrame = function() {
// --------Date--------------------------------------------
_root.createTextField("text_date", 2000, 70, -2, 300, 100);
text_date.multiline = 1;
text_date.wordWrap = 1;
text_date.border = 0;
text_date.selectable = 0;
if (hours>=0 && hours<4) {
text_date.text = "noch";
//_root.gotoAndStop(scene,frame);
} else if (hours>=5 && hours<12) {
text_date.text = "ytro";
//_root.gotoAndStop(scene,frame);
} else if (hours>=12 && hours<17) {
text_date.text = "den'";
//_root.gotoAndStop(scene,frame);
} else if (hours>=17 && hours<23) {
text_date.text = "vecher";
//_root.gotoAndStop(scene,frame);
}
// __format_______________________________
myformat = new TextFormat();
myformat.font = "BitDust One";
myformat.bold = 1;
myformat.size = 14;
myformat.italic=0, myformat.color=0x660099;
myformat.bullet = 0;
myformat.underline = 0;
text_date.setTextFormat(myformat);
// --------end_date----------------------------------------
};

wwwita
16.04.2003, 15:35
может только в первом кадре сделать ....... а то меняться будет... на глазах.....

Shad0w, виртуалная жизнь - это круто.... а после 23-х эротический канал будет?

Shad0w
17.04.2003, 04:01
Тоже идея. :) Как созреет, дам линку :)

wwwita
17.04.2003, 16:29
клёво ... я надеюсь он не платный будет .... %)