易截截图软件、单文件、免安装、纯绿色、仅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安全沙箱

文章一:http://blog.csdn.net/eyking/archive/2009/10/21/4702330.aspx
Flex就是致力于RIA的应用,Adobe为了扩大战场,推出了AIR环境,那么此时采用Flex编写的程序在浏览器中与桌面环境下都可以很好的移植了。像Flex与Flash这样奇怪的东西,战场不仅仅在浏览器上,还跑到了桌面环境下。一个很重要的安全模型就被提出了:F ......

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& ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号