forked from talltyler/HTMLWrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm.as
More file actions
33 lines (28 loc) · 628 Bytes
/
Form.as
File metadata and controls
33 lines (28 loc) · 628 Bytes
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
package framework.view.htmlwrapper
{
import framework.components.Button;
import flash.events.MouseEvent;
public class Form
{
public var action:String;
public var encoding:String;
public var method:String;
public var name:String;
public var elements:Array = [];
public var target:String;
public var radioButtons:Object = {};
public var submitButton:Button;
public function get length():int
{
return elements.length;
}
public function Form()
{
super();
}
public function submit():void
{
submitButton.dispatchEvent( new MouseEvent( MouseEvent.CLICK, true, false ) );
}
}
}