-
Notifications
You must be signed in to change notification settings - Fork 19
/
Test.as
111 lines (75 loc) · 1.89 KB
/
Test.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/**
* This is a Test File
*/
var test:Vector.<Test> = new Vector.<Test>(7, true); //length , fixed
trace(test); //0,0,0,0,0,0,0
var test2:Vector.<uint> = new <uint>[1,2,3];
trace(test2)
var test3:Vector.<uint> = Vector.<uint>([1, 2, 3]);
trace(test3);
var test4: Vector.<String>;
package net.nshen
{
import flash.utils.Dictionary;
import flash.display.*;
public class Test
{
static public var b1:Boolean = false;
static private var b2: Boolean = true;
static protected var b3:Boolean = true;
public var n1:Number = 1;
private var n2:int = 2;
protected var n3:uint = 3;
private var a:Number = 123;
private function a():Number
{
return 123;
}
private static function a():void
{
trace(1111);
}
private static var a:String = '111';
internal var abc:String = "12345";
internal var ccc:String = "sdfsdfsf";
private static const ccc:*=123;
public const ddd: *;
protected static const c2:Boolean = true;
private const c3:Number = 123;
public var myf:Array = new Array();
public function myf2(): Array
{
}
public static function psf()
{
trace(111);
}
private static function ccc(ccc:Boolean = true):void
{
trace(222);
}
public function Test(a:Number=123 ,b:String): dvoid
{
var test:Vector.<uint> = new Vector.<uint>(7, true); //length , fixed
trace(test); //0,0,0,0,0,0,0
var test2:Vector.<uint> = new <uint>[1,2,3];
test2.fixed = true;
trace(test2)
var test3:Vector.<uint> = Vector.<uint>([1, 2, 3]);
test3.fixed = true;
trace(test3);
trace("abc"+123);
const b:Boolean = true;
var i:Number = abc as Number;
var i:Number = abc as Number;
}
override protected function abcdedffff():int
{
return super.abc();
}
private function incAssetCount() : void
{
_assetCount++; _assetNumber++;
}
}
}