-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIndexApp.as
44 lines (30 loc) · 939 Bytes
/
IndexApp.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
package {
import flash.display.MovieClip;
import com.flashandmath.dg.GUI.MovingClouds;
import flash.events.Event;
import flash.display.StageScaleMode;
import flash.display.StageAlign;
import flash.media.Sound;
public class IndexApp extends MovieClip {
private var cloud:MovingClouds;
private var logo:Logo;
public function IndexApp() {
this.addEventListener(Event.ADDED_TO_STAGE,onAdd);
var s:Sound=new BgMusic();
var b:GoFullBtn=new GoFullBtn();
// constructor code
}
private function onAdd(e:Event):void{
//new StageScaleMode
//new StageAlign
stage.scaleMode=StageScaleMode.NO_SCALE;
stage.align=StageAlign.TOP_LEFT;
cloud=new MovingClouds(stage.stageWidth,stage.stageHeight,3,6,false);
addChild(cloud);
logo=new Logo();
addChild(logo);
logo.x=(stage.stageWidth-logo.width)>>1;
logo.y=(stage.stageHeight-logo.height)>>1;
}
}
}