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
|
/* <license>
* This file is part of the dis-Emi-A HaXe Library. Copyright (c) edA-qa mort-ora-y
* For full copyright and license information please refer to doc/license.txt.
* </license>
*/
package flashx.test;
import flash.display.Sprite;
import flash.events.Event;
class CTBreak extends Sprite
{
public function new()
{
super();
addEventListener( Event.ADDED, onAdded );
}
function onAdded( evt : Event )
{
stage.addEventListener( Event.RESIZE, onResize );
}
function onResize( evt : Event )
{
trace( "onResize" );
}
static public function main()
{
flash.Lib.current.stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;
flash.Lib.current.stage.align = flash.display.StageAlign.TOP_LEFT;
flash.Lib.current.addChild( new CTBreak() );
}
}
|