VaR array: array = new array (9, 11, 0, 9, 13, 36 );
VaR array1: array = new array (9, 11, 0, 9, 16, 0 );
VaR time: Date = new date ();
Taday = time. getday ();
If (taday = 1 ){
For (I = 1; I <= 6; I ++ ){
If (number (array1 [I-1]) <10 ){
_ Root ["T" + I] = "0" + array1 [I-1];
} Else {
_ Root ["T" + I] = array1 [I-1];
}
}
A = "athlete's March :";
B = "National Anthem of the Republic :";
} Else {
For (I = 1; I <= 6; I ++ ){
If (number (arrays [I-1]) <10 ){
_ Root ["T" + I] = "0" + array [I-1];
} Else {
_ Root ["T" + I] = array [I-1];
}
}
A = "athlete's March :";
B = "Rising Sun :";
}
If (time. gethours () = T4 & time. getminutes ()> T5 & time. getseconds ()> T6 ){
T = "timeout! Files cannot be played! ";
} Else {
T = "a file is waiting for playback. Do not close it! Thank you! ";
}
VaR paopao: movieclip = _ root. createemptymovieclip ("paopao", _ root. getnexthighestdepth ());
Paopao. onenterframe = function (){
If (random (2) = 0 ){
Shuipao = paopao. attachmovie ("Qipao", "Qipao", paopao. getnexthighestdepth ());
Shuipao. _ x = random (350 );
Shuipao. _ y = 80;
Shuipao. _ alpha = random (80 );
Shudu = random (2) + 1;
Shuipao. _ XScale = shuipao. _ yscale = random (80 );
Shuipao. onenterframe = function (){
This. _ y-= shudu;
If (this. _ y <= 0 ){
This. removemovieclip ();
}
Updateafterevent ();
};
}
};
Function Shijian (){
VaR time: Date = new date ();
Taday = time. getday ();
If (time. gethours () <10 ){
Shi = "0" + time. gethours ();
} Else {
Shi = time. gethours ();
}
If (time. getminutes () <10 ){
Fen = "0" + time. getminutes ();
} Else {
Fen = time. getminutes ();
}
If (time. getseconds () <10 ){
Miao = "0" + time. getseconds ();
} Else {
Miao = time. getseconds ();
}
TS = Shi + ":" + Fen + ":" + Miao;
If (taday = 1 ){
If (T1 = time. gethours () & t2 = time. getminutes () & T3 = time. getseconds ()){
VaR sound: Sound = new sound ();
Sound. attachsound ("athletes ");
Sound. Start ();
T = "playing:" + "the progress of the athletes ";
Sound. onsoundcomplete = function (){
T = "there are still files waiting for playback. Please do not close them! Thank you! ";
};
}
If (t4 = time. gethours () & T5 = time. getminutes () & T6 = time. getseconds ()){
VaR sound1: Sound = new sound ();
Sound1.attachsound ("National Anthem ");
Sound1.start ();
T = "playing in progress:" + "guokay ";
Sound1.onsoundcomplete = function (){
T = "the file playback has ended. You can disable it! ";
};
}
} Else {
If (T1 = time. gethours () & t2 = time. getminutes () & T3 = time. getseconds ()){
VaR sound: Sound = new sound ();
Sound. attachsound ("athletes ");
Sound. Start ();
T = "playing:" + "the progress of the athletes ";
Sound. onsoundcomplete = function (){
T = "there are still files waiting for playback. Please do not close them! Thank you! ";
};
}
If (t4 = time. gethours () & T5 = time. getminutes () & T6 = time. getseconds ()){
VaR sound1: Sound = new sound ();
Sound1.attachsound ("Sunrise ");
Sound1.start ();
T = "playing:" + "rising sun to the east ";
Sound1.onsoundcomplete = function (){
T = "the file playback has ended. You can disable it! ";
};
}
}
}
Setinterval (Shijian, 1000 );
This article is from the "longyin hut" blog, please be sure to keep this source http://9353742.blog.51cto.com/9343742/1571839
Scheduled broadcasting source code during recess