1.事件:ListEvent.ITEM_CLICK
mouseFocusChange: 失去焦点:
view.aList.cudg.addEventListener(ListEvent.ITEM_CLICK, selectHandler);
private function textArea_textInput(evt:TextEvent):void {
if (evt.text == "\n") {
evt.preventDefault();
}
}
2.样式:
4.Pl/Sql Developer怎么样能格式化SQL语句 edit->PL/SQL Beautifier
把一行sql变成多行
5.word: Document Map:
6.flex TitleWindow弹出窗无法移动
7.double类型字段(sql):
String kValue=rs.getColumn("value").toString();
if(!"".equals(kValue)){
info.setKValue(kpiValue);
}
else{//如果该字段为空
info.setKValue("0");
}
8.<s:CheckBox id="rWrap" width="40" visible="false" includeInLayout="false"/>
includeInLayout=false 不显示这个组件
9.
var str:String ="this is a test,thank you!";
str=str.substring(5,8); //从下标位5到下标位8
10.删除一个组件
view.rowLabel.visiable=fale;
view.rowLabel.includeInLayout=false;
//不占用宽度,不显示
Flex 数值标签:
<mx:NumericStepper id="inputpage" stepSize="1" minimum="1" height="23" maximum="{totalPage}" cornerRadius="0" value="{curPage}"/>
2.能不能调用被包含的方法?
mx.core.Application.application._login.loginOut();
3.传值:
flex自定义组件怎样向另一个自定义组件传值:
B:
A.addEventListener("closeEvent",handler);
prvate function handler():void{
xx.visiable = true;
}
A:
dispatcheEvent(new Event("closeEvent"));
4.TypeError: Error #1010: A term is undefined and has no properties.
TypeError: Error #1010: A term is undefined and has no properties.
at mx.controls.dataGridClasses::DataGridBase/createColumnItemRenderer()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:1579]
5.通过gap属性,设置VerticalLayout两个项目间竖直方向间距。
6.flex s:Lable自动换行:
The Label control displays a single line of noneditable text. Use the Text control to create blocks of multiline noneditable text.
Label 组件是一个单行和不可编辑文本标签,支持 HTML 标记。
你可以定义 字符串,例如:[Bindable] private var str:String="hahha\n1234564"
Lable 中 text={str}