-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathPriceBoxSender.as
More file actions
38 lines (33 loc) · 876 Bytes
/
PriceBoxSender.as
File metadata and controls
38 lines (33 loc) · 876 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
package componentStatic
{//componentStatic.PriceBoxSender
import flash.events.Event;
import flash.text.SoftKeyboardType;
public class PriceBoxSender extends ComponentManager
{
public function PriceBoxSender()
{
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)
}
var _textbox:TextBox = new TextBox(this,value,SoftKeyboardType.NUMBER,false,true,false)
_textbox.addEventListener(TextBoxEvent.TEXT,textBoxEvent_fun)
setObj(this.name,value,ErrorManager.PRICE)
}
protected function textBoxEvent_fun(event:TextBoxEvent):void
{
setObj(this.name,event.text,ErrorManager.PRICE)
}
}
}