![]() |
|
||||||||||
|
|||||
|
Регистрация: Oct 2001
Адрес: Уфа
Сообщений: 677
|
а еще есть вот такой код
function createMosquitos (count) {
// create mosquitos
var i;
for (i=1; i<=count; i++) {
_root.attachMovie("mosquito", "mosquito"+i, i);
}
}
function changeCursor (movieclip) {
// create custom cursor
Mouse.hide();
_root.attachMovie(movieclip, "customCursor", 9999);
_root.customCursor.startDrag(true);
}
function calculateRandom (min, max) {
// random with the math object (Flash 5)
return Math.floor(Math.random()*(max+1-min))+min;
}
function playSound (max, x, soundID) {
// play stereo sound depending on the x-position of the action
var soundobject;
soundobject = new Sound();
soundobject.attachSound(soundID);
if (x<0) {
x = 0;
} else if (x>max) {
x = max;
}
soundobject.setPan((x-(max/2))*100/(max/2));
soundobject.start();
}
p.s. телепаты в отпуске
__________________
Почему люди не летают? Вопрос надо ставить конкретнее: почему люди не летают ВВЕРХ? |
![]() |
Часовой пояс GMT +4, время: 16:42. |
|
|
« Предыдущая тема | Следующая тема » |
|
|