易截截图软件、单文件、免安装、纯绿色、仅160KB

flex小错误(常记多做)

1、假如一个自定义控件被用在一个主控件里,在自定义控件里的方法可以转换为主控件的方法,完成调用。
userRulesCanvas.mxml 和 editRulesCanvas.mxml
compent控件代码如下:
private function submitClick():void
            {
                if((code.length == 0)||(addr.length == 0))
                {      //这里可调用主程序的方法editSipAccountHandle()
                    parentApplication.editSipAccountHandle(code.text,addr.text)
                    closeHandle()
                }
            }
主控件代码如下:
public function editSipAccountHandle(sipAccount:String)
            {
                getUserRuleWs.modifyRulePhone(sipAccount);
            }
2、xml格式的string对象的读取
event.result的值等于如下
<?xml version="1.0" encoding="UTF-8"?>
<rule>
    <sipAccount>sip:hill@ocp.gz.com</sipAccount>
    <extension>sip:8190@ext.protel.com.hk</extension>
    <action>
        <outgoing>
            <sipPhoneAddr code="408">sip:969071526@ext.protel.com.hk</sipPhoneAddr>
            <sipPhoneAddr code="404">sip:963306728@ext.protel.com.hk</sipPhoneAddr>
           


相关文档:

10 Tips for Flex Application Performance

We're going to keep this post lean and mean, and get down to
business with 10 Tips that will keep your Flex applications fast, lean,
and responsive.
Rule # 1: Clean up after yourself
In general, it is good practice to maintain clean code. Not only
in the sense of having properly formatted and ......

Flex Autocomplete组件的使用实例

测试文件代码如下:导入com.hillelcoren.components包
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
 xmlns:mx="http://www.adobe.com/2006/mxml"
 xmlns:hc="com.hillelcoren.components.*"
 xmlns:classes="com.hillelcoren.components.autoComplete.classes.*"
 xmlns:l ......

flex 实现全文检索中的高亮显示代码

<mx:DataGrid id="dg" click="select()" dataProvider= "{modelLocator.resultList}" borderStyle="none"
verticalGridLines="false" horizontalGridLines="false" verticalScrollPolicy="off" rowCount="10"
fontSize="16" fontStyle="normal" fontThickness="0" width="100%" height="100%">
<mx:columns& ......

FLEX TitleWindow之间数据传输的示例


在Flex里,一般的弹出窗口(除了Alert以外)都可以用TitleWindow组件完成,主窗口和TitleWindow的数据传输可以用以下方法
假设TitleWindow的实例文件为titleWin.mxml,则要在Application中用PopUpManager创建一个titleWin的引用
private var popWin:titleWin = titleWin(PopUpManager.createPopUp(this,titleWin,true) ......

FLEX 仿Google联想框效果

FLEX--仿Google联想框效果--现在好多地方都用到了这样的效果,当然,现在Google下线了,不让用了,但是跟网上说的一样,想办法,它还是能出来的
首先是事件源,也就是从何而起,如下的一个输入框:
复制代码 代码如下:
<mx:FormItem label="集团客户:" width="42%">
<!--change1-->
<mx:TextInput id="txt ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号