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

flex时序图示例

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

import mx.collections.ArrayCollection;
import mx.charts.chartClasses.IAxis;
import mx.logging.*;
import mx.logging.targets.*;


[Bindable]
public var stockDataAC:ArrayCollection = new ArrayCollection( [
{date: "2005,1,27", close: 41.71, next: 41.71},
{date: "2005,2,28", close: 42.21, next: 42.71},
{date: "2005,3,29", close: 42.11, next: 43.71},
{date: "2005,4,1", close: 42.71, next: 44.71},
{date: "2005,5,2", close: 42.99, next: 45.71},
{date: "2005,6,3", close: 44, next: 47.71},
{date: "2005,6,27", close: 41.71, next: 41.71},
{date: "2005,7,28", close: 42.21, next: 42.71},
{date: "2005,8,29", close: 42.11, next: 43.71},
{date: "2005,10,1", close: 42.71, next: 44.71},
{date: "2005,11,2", close: 42.99, next: 45.71},
{date: "2005,12,3", close: 44, next: 47.71} ,
{date: "2006,1,27", close: 41.71, next: 41.71},
{date: "2006,2,28", close: 42.21, next: 42.71},
{date: "2006,3,29", close: 42.11, next: 43.71},
{date: "2006,4,1", close: 42.71, next: 44.71},
{date: "2006,5,2", close: 42.99, next: 45.71},
{date: "2006,6,3", close: 44, next: 47.71},
{date: "2006,6,27", close: 41.71, next: 41.71},


相关文档:

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 ......

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 source="style/style.css"/>
    <mx:Scri ......

Flex嵌入字体的方法(一)

 最近看了一下Flex嵌入字体的方法,把最后使用的方法记录下来,以备后用。
首先加入如下样式,
&lt;mx:Style&gt;
@font-face {
src:url("assets/jdzy.ttf");
fontFamily: myFont;
advancedAntiAliasing: true;
}
.myShowFont {
fontFamily: myFont;
}
&lt;/mx:Style&gt;
再将需 ......

Flex嵌入字体的方法(二)

 上次说了直接把字体嵌入到flex程序中的方法,这次写一下将字体编译成swf后供其它flex程序加载来调用的方法。
首先,新建一个actionscript的project,取名为FlexFont,将字体文件放到src/font目录下,主程序为
FlexFont.as文件,内容如下:
package {
import flash.display.Sprite;
public class FlexFont extend ......

flex builder载入字体

 flex builder 设置非系统默认字体:
存在问题:text不能设置bold,否则不起作用。
方法一:(css)
<mx:Style>
        @font-face
        {
            font-family: myFont;
   & ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号