comparison SilverlightExampleApp/SilverlightExampleApp.Web/SplashScreen.js @ 49:502f5f365649

Initial load for Silverlight Example Application
author Steven Hollidge <stevenhollidge@hotmail.com>
date Tue, 17 Apr 2012 17:57:52 +0100
parents
children
comparison
equal deleted inserted replaced
48:d617b54e1f47 49:502f5f365649
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 }