112
|
1 function onSourceDownloadProgressChanged(sender, eventArgs) {
|
|
2 var val = Math.round((eventArgs.progress * 1000)) / 10;
|
|
3 //sender.findName("progressText").Text = String(Math.round(val));
|
|
4
|
|
5 if (val <= 25) {
|
|
6 sender.findName("LoadingMask1").ScaleX = val / 25;
|
|
7 }
|
|
8 if (val > 25 && val <= 50) {
|
|
9 sender.findName("LoadingMask1").ScaleX = 1;
|
|
10 sender.findName("LoadingMask2").ScaleX = val / 50;
|
|
11 }
|
|
12 if (val > 50 && val <= 75) {
|
|
13 sender.findName("LoadingMask1").ScaleX = 1;
|
|
14 sender.findName("LoadingMask2").ScaleX = 1;
|
|
15 sender.findName("LoadingMask3").ScaleX = val / 75;
|
|
16 }
|
|
17 if (val > 75 && val <= 100) {
|
|
18 sender.findName("LoadingMask1").ScaleX = 1;
|
|
19 sender.findName("LoadingMask2").ScaleX = 1;
|
|
20 sender.findName("LoadingMask3").ScaleX = 1;
|
|
21 sender.findName("LoadingMask4").ScaleX = val / 100;
|
|
22 }
|
|
23 } |