-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathPopMenuContent.as
More file actions
87 lines (69 loc) · 1.79 KB
/
Copy pathPopMenuContent.as
File metadata and controls
87 lines (69 loc) · 1.79 KB
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
package popForm
{
import flash.display.DisplayObject;
public class PopMenuContent
{
public var resetScroll:Boolean=true ;
public var mainTXT:String ;
public var buttonList:Array ;
/**NEW ! This is frame number for each button*/
public var buttonsInterface:Array ;
public var fieldDatas:PopMenuFields ;
public var haveField:Boolean ;
/**Justify title*/
public var justify:Boolean ;
/**generate popMenuContent manager<br>
* enter default text of "" space on haveField to show it as field
* enter buttons name on buttonArray array in string*/
public var displayObject:DisplayObject ;
public function PopMenuContent(MainText:String = '' ,
HaveField:PopMenuFields = null ,
buttonsArray:Array = null,
innerDisplayObject:DisplayObject = null,
buttonFrames_v:Array = null,
ResetYScroll:Boolean=true,
justifyTitle:Boolean=false)
{
displayObject = innerDisplayObject ;
justify = justifyTitle ;
resetScroll = ResetYScroll ;
var i:int ;
if(buttonsArray == null)
{
buttonList = new Array() ;
}
else
{
buttonList = buttonsArray.concat() ;
}
if(buttonFrames_v == null)
{
buttonsInterface = new Array() ;
for(i = 0 ; i<buttonList.length ; i++)
{
buttonsInterface.push(1);
}
}
else
{
buttonsInterface = buttonFrames_v.concat() ;
var lastFrame:uint = buttonsInterface[buttonsInterface.length-1] ;
for(i = buttonsInterface.length ; i<buttonsArray.length ; i++)
{
buttonsInterface.push(lastFrame);
}
}
if(HaveField==null)
{
fieldDatas = null;
haveField = false;
}
else
{
fieldDatas = HaveField;
haveField = true;
}
mainTXT = MainText ;
}
}
}