Flex 默认选中textInput的值
请问大家,如何实现 默认选中textInput控件的值,当该控件得到焦点时,值消失! 在线等。。。。
没明白
这个过程很快的,你看不到
你可以参考一下
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical" initialize="init()">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function init():void{
this.focusManager.setFocus(TI1);
TI1.focusManager.showFocus();
//Alert.buttonWidth = 150;
//Alert.buttonHeight = 50;
//Alert.show("test");
}
]]>
</mx:Script>
<mx:Button label="test" id="b1"/>
<mx:TextInput id="TI1" />
<mx:Button label="test2"/>
</mx:WindowedApplication>
XML code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function init():void{
相关问答:
在flash中很容易能实现百叶窗效果,不知道flex中能否同样实现该效果?
flex中貌似不行,
air可以
mark
百叶窗是多个网页在同一个页面切换吗?
引用
effects\Blinds.as
JScript code
package effec ......
flex 中 <mx:images>控件有没有调节图片亮度这个控件啊,,,,我想把图片亮度调低,如何实现呢,,在线等答案。。。
<mx:Image x="48" height="30" width="30 " ......
我的JAVA端返回的是一个LIST,如果用下面的方法,可以是能在页面加载时,得到服务端返回的数据的,即:
?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx=&qu ......
Flex 的Array的Every函数怎么使用?
比如我验证数组中是否包含一个值,这个值是变量,不是常量,
Every函数怎么写?
http://blog.minidx.com/2008/06/19/912.html
可以参考
引用
http://blog. ......