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

flex 笔记(更新中。。。。)

1、如果要设置Validator验证组件里面提示字的大小,可以在mxml中加入
    <mx:Style>
<!--[CDATA[
.errorTip
{
fontSize: 12;
}
]]-->
</mx:Style>
2、设置tooltip中的样式(如字体大小,颜色)可在mxml中的creationComplete的initApp()加入
      StyleManager.getStyleDeclaration("ToolTip").setStyle("fontSize",15);
StyleManager.getStyleDeclaration("ToolTip").setStyle("backgroundColor","#F7F1F1");
      


相关文档:

flex鼠标移到某组件鼠标的形状变成手型

 比如我要设置当鼠标移动到label上时,鼠标形状变成手型
具体代码
<mx:Label text="click me"  
    useHandCursor="true"    
    buttonMode="true"    
    mouseChildren="false"/>
只要设置:
use ......

用flex如何显示数字时钟

 通过Flex中的Timer可是实现数字时钟的效果,其效果图如下:
实现的代码如下:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

<mx:Script>
<!--[CDATA[

import mx.formatters.DateFormatt ......

flex builder载入字体

 flex builder 设置非系统默认字体:
存在问题:text不能设置bold,否则不起作用。
方法一:(css)
<mx:Style>
        @font-face
        {
            font-family: myFont;
   & ......

Flex中 12个非常有用函数

 No.1 某字符器放到粘贴版:
System.setClipboard(strContent);
No.2 复制数组:
//dummy solution( well, it works )
var bar:ArrayCollection = new ArrayCollection();
for each ( var i:Object in ac ){
bar.addItem( i );
}
// fantastic ! //
var bar:ListCollectionView = new ListCollectionVi ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号