-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathPopMenuEvent.as
More file actions
50 lines (42 loc) · 1.4 KB
/
PopMenuEvent.as
File metadata and controls
50 lines (42 loc) · 1.4 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
package popForm
{
import contents.alert.Alert;
import flash.events.Event;
/**it is contains buttonID and field values*/
public class PopMenuEvent extends Event
{
public static const POP_SHOWS:String = "popMenuShows";
public static const POP_CLOSED:String = "popClosed";
public static const POP_BUTTON_SELECTED = "buttonSelecte";
/**Dispatches when CLICK field selects.<br>
* When this event dispatches from field, you have to detect field id from buttonID value and you can get last field value by using field[buttinID]*/
public static const FIELD_SELECTED:String = "FIELD_SELECTED" ;
/**Button id can be String or Number*/
public var buttonID:*,
buttonTitle:String,
buttonData:Object;
/**this is an Object of each values that entered on fields<br>
* You can find each field with its id on this object*/
public var field:Object ;
/**Button id can be a String value*/
public function PopMenuEvent(type:String,ButtonID:*=0,enteredField:Object=null,ButtonTitle:String='',bubble:Boolean=false,ButtonData:Object=null)
{
super(type,bubble);
buttonID = ButtonID;
buttonTitle = ButtonTitle ;
buttonData = ButtonData ;
if(enteredField == null)
{
field = {} ;
}
else
{
field = enteredField ;
if(field[0] == undefined || field[0] == null)
{
field[0] = "PopMenuFields on PopMenuEvents are no longer an Array"
}
}
}
}
}