2010-11-23 57 views
0
<s:TextInput id="bill" x="150" y="17" width="223" 
borderColor="#FFFBFB" borderVisible="false" 
color="#EF4315" contentBackgroundColor="#100101" 
enabled="false" fontWeight="bold" restrict="0-9" 
text="0.00" textAlign="right"/> 

“0-9”限制我的TextInput字段为数值 和小数点。有没有一种方法可以延长这个,所以只有 两个地方遵循小数?ActionScript数据录入问题

回答

0

不幸的是,你不能。但是你可以监听CHANGE事件并以编程方式在TextInput上强制执行此操作。