-
Notifications
You must be signed in to change notification settings - Fork 4
/
TriCloudLoader.as
56 lines (43 loc) · 1.56 KB
/
TriCloudLoader.as
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
package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.utils.Timer;
import flash.events.TimerEvent;
import mx.events.*;
import mx.preloaders.Preloader;
import mx.preloaders.DownloadProgressBar;
//import preload.WelcomeScreen;
public class TriCloudLoader extends DownloadProgressBar
{
//public var wcs:WelcomeScreen;
public function TriCloudLoader()
{
super();
//wcs = new WelcomeScreen();
//this.addChild(wcs)
}
override public function set preloader( preloader:Sprite ):void
{
preloader.addEventListener( ProgressEvent.PROGRESS , SWFDownloadProgress );
preloader.addEventListener( Event.COMPLETE , SWFDownloadComplete );
preloader.addEventListener( FlexEvent.INIT_PROGRESS , FlexInitProgress );
preloader.addEventListener( FlexEvent.INIT_COMPLETE , FlexInitComplete );
}
private function SWFDownloadProgress( event:ProgressEvent ):void
{
}
private function SWFDownloadComplete( event:Event ):void
{
}
private function FlexInitProgress( event:Event ):void
{
}
private function FlexInitComplete( event:Event ):void
{
// wcs.ready = true;
dispatchEvent( new Event( Event.COMPLETE ) );
}
}
}