flex 常见问题

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}

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值