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

Flex编译参数

Flex编译参数
accessible=true|false 是否具有可理解性(如为残疾人提供方便的性能)
actionscript-file-encoding | 设置文件编码,如Shitf_JIS
advanced | mxmlc -help advanced,如这样的高级参数
allow-source-path-overlap=true|false | 验证source-path中定义的路径是否出现重叠,出现互相包含的现象
as3=true|false | 是否使用as3对象模型,默认为ture,如果选false,则es一定要定义为true
benchmark=true|false | 是否输出编译时期的详细内容,默认是true
context-root; context-path | 设置flex-services.xml中的{context.root},如果没有详细定义,那flex将用空值。
contributor name | 添加到swf文件里,name是贡献者的名字
creator name | 添加到swf文件里,name是作者的名字
date text | 添加到swf文件里,text是数据的内容
debug=true|false | 是否可以进行调试
debug-password string | 远程调试用,设置密码
default-background-color int | 默认背景颜色,默认为null,例如: -default-background-color=0xCCCCFF
default-frame-rate int | 设置帧数,默认为24
default-script-limits | 定义应用脚本程序的执行限制
max-recursion-depth | 最大的递归默认是:1000
max-execution-time | 最大的执行时间默认是:60,你不能设置比60还大。
default-size width height | 设置应用程序的大小,单位是像素
defaults-css-url string | 设置css 的路径
description text | 添加到swf文件里的描述内容,text是描述的内容
dump-config filename | 将次配置内容输出到filename的文件里,如:mxmlc -dump-config myapp-config.xml
es=true|false | 略
externs symbol [...] | 略
external-library-path path-element [...] | 外部类的路径
file-specs path-element [...] | 指定源文件去编译,这默认的是 mxmlc编译器
fonts.languages.language-range lang range | 指定 Unicode编码语言的范围
fonts.managers manager-class [...] | 字体管理器,默认的是 flash.fonts.JREFontManager,也可以使用 flash.fonts.BatikFontManager
fonts.max-cached-fonts string | 在服务器缓存上可以保存的最大字体数
fonts.max-glyphs-per-face string | 最大限度的字符缓存
frames.frame label class name [...] | 将一系列的类名指定到相应label标记的帧上
generate-frame-loader=true|false | 绑定到默认的loader类上。
he


相关文档:

flex 实时内存使用率图

 <?xml version="1.0"?>
<!-- charts/MemoryGraph.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
initialize="initTimer()">
<mx:Script>
<!--[CDATA[
import flash.utils.Timer;
import flash.events.TimerEve ......

flex图表渐变效果示例

<?xml version="1.0"?>
<!-- charts/GradientFills.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<!--[CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var expenses:ArrayCollection=new Arra ......

flex图表鼠标事件

<?xml version="1.0"?>
<!-- charts/DataPointAlert.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<!--[CDATA[
import mx.controls.Alert;
import mx.charts.events.ChartItemEvent;
import mx.collections.Array ......

flex 嵌入简单的html

<mx:TextArea
width=
"200"
height=
"100"
>
<mx:htmlText>
This is an example of setting a <B>
TextArea</B>
control's <I>
htmlText<I>
property.
</mx:htmlText>
</mx:TextArea>
支持的样式标记
< ......

关于flex 的几种绑定

第一种,使用{}绑定
<mx:TextInput
id=
"input"
/>
<mx:Label
text=
"{input.text}"
/>
第二种,<mx:Binding> 绑定
<mx:Application
xmlns:mx=
"http://www.adobe.com/2006/mxml"
layout=
"vertical"
>
<mx:TextInput
i ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号