-
Notifications
You must be signed in to change notification settings - Fork 0
/
siteNav
66 lines (55 loc) · 2.87 KB
/
siteNav
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
stop();
moog.tabIndex = 1;
focusManager.setFocus(moog);
globalNum = new Number();
globalNum = 0;
slider1.musakVolumeSliderMC.onPress = function() {startDrag(this,true,0,-114,0,0);}
slider1.musakVolumeSliderMC.onRelease = function() {stopDrag();}
slider1.musakVolumeSliderMC.onReleaseOutside = function() {stopDrag();}
slider2.musakVolumeSliderMC.onPress = function() {startDrag(this,true,0,-114,0,0);}
slider2.musakVolumeSliderMC.onRelease = function() {stopDrag();}
slider2.musakVolumeSliderMC.onReleaseOutside = function() {stopDrag();}
slider3.musakVolumeSliderMC.onPress = function() {startDrag(this,true,0,-114,0,0);}
slider3.musakVolumeSliderMC.onRelease = function() {stopDrag();}
slider3.musakVolumeSliderMC.onReleaseOutside = function() {stopDrag();}
slider4.musakVolumeSliderMC.onPress = function() {startDrag(this,true,0,-114,0,0);}
slider4.musakVolumeSliderMC.onRelease = function() {stopDrag();}
slider4.musakVolumeSliderMC.onReleaseOutside = function() {stopDrag();}
slider5.musakVolumeSliderMC.onPress = function() {startDrag(this,true,0,-114,0,0);}
slider5.musakVolumeSliderMC.onRelease = function() {stopDrag();}
slider5.musakVolumeSliderMC.onReleaseOutside = function() {stopDrag();}
slider6.musakVolumeSliderMC.onPress = function() {startDrag(this,true,0,-114,0,0);}
slider6.musakVolumeSliderMC.onRelease = function() {stopDrag();}
slider6.musakVolumeSliderMC.onReleaseOutside = function() {stopDrag();}
setInterval(randomFunc, 30000);
function randomFunc(){
yDest1 = -(random(114));
yDest2 = -(random(114));
yDest3 = -(random(114));
yDest4 = -(random(114));
yDest5 = -(random(114));
yDest6 = -(random(114));
rotDest1 = Math.round(Math.random()*(-145-145))+145;
rotDest2 = Math.round(Math.random()*(-145-145))+145;
rotDest3 = Math.round(Math.random()*(-145-145))+145;
onEnterFrame = function(){
if (slider6.musakVolumeSliderMC._y != yDest6
|| slider5.musakVolumeSliderMC._y != yDest5
|| slider4.musakVolumeSliderMC._y != yDest4
|| slider3.musakVolumeSliderMC._y != yDest3
|| slider2.musakVolumeSliderMC._y != yDest2
|| slider1.musakVolumeSliderMC._y != yDest1) {
slider1.musakVolumeSliderMC._y += (yDest1-slider1.musakVolumeSliderMC._y)*.03;
slider2.musakVolumeSliderMC._y += (yDest2-slider2.musakVolumeSliderMC._y)*.03;
slider3.musakVolumeSliderMC._y += (yDest3-slider3.musakVolumeSliderMC._y)*.03;
slider4.musakVolumeSliderMC._y += (yDest4-slider4.musakVolumeSliderMC._y)*.03;
slider5.musakVolumeSliderMC._y += (yDest5-slider5.musakVolumeSliderMC._y)*.03;
slider6.musakVolumeSliderMC._y += (yDest6-slider6.musakVolumeSliderMC._y)*.03;
}
if(dial1.BigDial.dialTop._rotation != rotDest1){
dial1.BigDial.dialTop._rotation += (rotDest1-dial1.BigDial.dialTop._rotation)*.02;
dial2.BigDial.dialTop._rotation += (rotDest2-dial2.BigDial.dialTop._rotation)*.02;
dial3.BigDial.dialTop._rotation += (rotDest3-dial3.BigDial.dialTop._rotation)*.02;
}
}
}