摘要:
1Q:使用Flex Bulider3建立一下新的.mxml的页面时默认的背景是蓝色的,请问用什么办法能修改掉此背景颜色,以至于下次创建时背景不是为默认的蓝色的呢?请写出你认为正确的方法. A:这个问题之前还真没想过,查看了下。我直接是从4开始用的。3没怎么用过。 3的答案是:修改sdk\frameworks\projects\framework\default.css里Application的backgroundColor: #0000FF; 4的是根据Adobe Flash Builder 4 Plug-in\sdks\4.1.0\frameworks\themes\Spark中的... 阅读全文
摘要:
下面有四种方法,估计好用的应该是第三种吧。1.用JAVA自带的函数 public static boolean isNumeric(String str){ for (int i = str.length();--i>=0;){ if (!Character.isDigit(str.charAt(i))){return false; } }return true; } 2.正则表达式 public static boolean isNumeric(String str){ Pattern pattern = Pattern.compile("[0-9]*"); ret 阅读全文
摘要:
TextInput有个属性叫restrict,设置该属性即可。例如:只允许输入数字和负号:<s:TextInput id="textinput_LOGOLeftW" restrict="0-9\-\+" />只允许输入数字和点号:<mx:TextInput id="txt" restrict="0-9\." />只允许输入数字、英文、汉字:<mx:TextInput restrict="0-9\a-z\^{'[\u4e00-\u9fa5]'}"/&g 阅读全文
摘要:
<?xml version="1.0" encoding="utf-8"?><s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="118" height="24" creationComplete=" 阅读全文
摘要:
在网上找的,进行优化完善...myChooseTimepackage com.gps.view.component.nmsDateFiled{ import flash.events.Event; import mx.containers.HBox; import mx.containers.Panel; import mx.controls.ComboBox; import mx.controls.Label; import mx.formatters.DateFormatter; public class myChooseTime extends Panel { public var... 阅读全文