易截截图软件、单文件、免安装、纯绿色、仅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中Popup窗口访问父窗口的4种方法以及相互传值


1.如果使用MVC框架,相信这并不是一个问题。而如果没有使用的话,可以用类似的方法设置一个单例,子窗口和父窗口通过这个单例来交互消息,如果需要解耦,请发送自定义事件。总之,只要按照MVC思路来做就可以了。
2.类似JS,在子窗口的构造函数里增加一个参数,将父窗口传参进去。MXML没有构造函数,用一个属性来保存父窗 ......

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 创建一个自定义风格的HRule或VRule

Flex中如何通过strokeWidth, strokeColor和shadowColor样式,创建一个自定义风格的HRule或VRule
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="vertical"
    verticalAlign="middle"
 &nbs ......

FLEX 仿Google联想框效果

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