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

flex builder载入字体

 flex builder 设置非系统默认字体:
存在问题:text不能设置bold,否则不起作用。
方法一:(css)
<mx:Style>
        @font-face
        {
            font-family: myFont;
            src: local("HGMaruGothicMPRO");//加载字体,HGMaruGothicMPRO为字体名字
        }
</mx:Style>
<mx:Label  text="文本内容" height="18" id="lable1" fontSize="12" fontFamily="myFont" />
方法二:(script)
<mx:Script>
<![CDATA[
[Embed(mimeType='application/x-font', source='HGRSMP.TTF', fontName='myFont')]//调用字体如
HGRSMP.TTF。可将字体放在同一目录下
              
private var myFont:Class;
       
]]>
       
</mx:Script>
<mx:Label  text="文本内容" height="18" id="lable1" fontSize="12" fontFamily="myFont" />,


相关文档:

flex的一些样式说明

1、ButtonBar组件:
       firstButtonStyleName: "mybuttonBarFirstButtonStyle"; //第一个按钮的样式
       lastButtonStyleName: "mybuttonBarLastButtonStyle";//最后一个按钮的样式
       buttonStyleNa ......

flex学习笔记5

<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the Application container. -->
 
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    backgroundGradientColors="[0xCCCCCC, 0x66CCFF]"
    backgroundColor="0xCCCC ......

Frame Rate对Flex程序占用系统资源的分析

 Frame Rate对Flex程序占用系统资源的分析,我们通过浏览器不同、Frame Rate不同的情况下,系统资源CPU的利用率比较。
 Frame Rate的设置:
     默认Frame传输速率是24,我们可以这样来设置,mxmlc -defaule-frame-rate 50 HelloWorld.mxml,通过这一语句的设置,
可以使Frame传输速率为5 ......

flex 放大缩小源码

 <?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the Zoom effect. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Style />
    <mx:Script>
     & ......

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

 比如我要设置当鼠标移动到label上时,鼠标形状变成手型
具体代码
<mx:Label text="click me"  
    useHandCursor="true"    
    buttonMode="true"    
    mouseChildren="false"/>
只要设置:
use ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号