-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathEmail.as
More file actions
47 lines (39 loc) · 956 Bytes
/
Email.as
File metadata and controls
47 lines (39 loc) · 956 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package componentStatic
{//componentStatic.Email
import flash.events.Event;
public class Email extends ComponentManager
{
private var _textbox:TextBox;
import flash.text.SoftKeyboardType;
public function Email()
{
super()
update()
ComponentManager.evt.addEventListener(ComponentManagerEvent.UPDATE,getUpdate)
}
protected function getUpdate(event:Event):void
{
update()
}
public function update():void
{
var value:String = ''
if(getObj(this.name)!=null)
{
value = getObj(this.name)
}
_textbox = new TextBox(this,value,SoftKeyboardType.EMAIL)
_textbox.addEventListener(TextBoxEvent.TEXT,textBoxEvent_fun)
setObj(this.name,value,ErrorManager.EMAIL)
}
protected function textBoxEvent_fun(event:TextBoxEvent):void
{
setObj(this.name,event.text,ErrorManager.EMAIL)
}
public function rest()
{
//_textbox.setText('')
_textbox.setValueTextByeCod_fun('')
}
}
}