您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 其它行业文档 > Flex编译器以及常用编译参数
Flex编译器以及常用编译参数分类:待分类2011-07-1316:2039人阅读评论(0)收藏举报常见Flex编译器参数汇总verbose-stacktraces此Flex编译器参数指定SWF在运行时异常信息中包含行号和文件名,这将使产生的SWF文件更大些,带verbose-stacktraces的SWF还是和调试版本的SWF有区别的。source-pathpath-element添加其他源代码目录或文件,可以使用通配符来添加目录中所有文件或子目录,也可使用+=在默认路径上来追加新参数,例如-source-path+=/Users/base/Projectinclude-libraries此Flex编译器参数指定SWF文件被编译到程序中并链接库中所有类和资源到SWF上。如果你的程序需要加载其他模块这个参数就很有用了。library-path跟include-libraries选项类似,但是只引用类和资源以供SWF使用,这样可保持SWF文件的可管理性。locale此Flex编译器参数指定SWF文件的区域属性,例如使用-locale=es_ES指定SWF区域为西班牙use-network此Flex编译器参数指示SWF是否可以访问网络服务或者应用标准的FlashPlayer权限策略。例如-usenetwork=false指定SWF有本地文件系统访问权但不能访问任何网络服务,默认为trueframes.frame启动应用程序资源代理流,然后通过ModuleManager类公布其接口,在特殊情况下,比如在代码中已经引入资源但是并不需要移动资源到外部SWF文件,这时此参数可使应用程序启动时间大大减少,这是一个很复杂但很有用的参数。keep-all-type-selectors保证所有样式信息都被编译进SWF,甚至是程序没有用到的。这点非常重要,因为有可能程序加载的其他组件需要这些样式信息。默认值为false,也就是说没有用到的样式信息不会被编译进SWF。设置好编译器参数后,点击Apply按钮保存。下面是所有的编译参数:AdobeFlexCompiler(mxmlc)Version3.4.0build6955Copyright(c)2004-2007AdobeSystems,Inc.Allrightsreserved.-benchmarkoutputperformancebenchmark-compiler.accessiblealias-accessiblegenerateanaccessibleSWF-compiler.actionscript-file-encodingstringalias-actionscript-file-encodingspecifiesactionscriptfileencoding.IfthereisnoBOMintheAS3sourcefiles,thecompilerwillusethisfileencoding.-compiler.context-rootcontext-pathalias-context-rootpathtoreplace{context.root}tokensforservicechannelendpoints-compiler.debugalias-debuggeneratesamoviethatissuitablefordebugging-compiler.external-library-path[path-element][...]alias-external-library-pathlistofSWCfilesordirectoriestocompileagainstbuttoomitfromlinking(repeatable)——引用的SWC库文件-compiler.fonts.advanced-anti-aliasingalias-advanced-anti-aliasingenablesadvancedanti-aliasingforembeddedfonts,whichprovidesgreaterclarityforsmallfonts.-compiler.fonts.flash-typealias-flash-typeenablesFlashTypeforembeddedfonts,whichprovidesgreaterclarityforsmallfonts.-compiler.fonts.max-glyphs-per-facestringalias-max-glyphs-per-facesetsthemaximumnumberofcharacterglyph-outlinestokeepintheservercacheforeachfontface.Thedefaultvalueis1000.-compiler.include-libraries[library][...]alias-include-librariesalistoflibraries(SWCs)tocompletelyincludeintheSWF(repeatable)-compiler.incrementalalias-incrementalenablesincrementalcompilation加快命令行编译速度,在FlashBuilder是默认打开的-compiler.keep-all-type-selectorsalias-keep-all-type-selectorsdisablesthepruningofunusedCSStypeselectors(advanced)-compiler.keep-as3-metadata[name][...]alias-keep-as3-metadatakeepthespecifiedmetadataintheSWF(advanced,repeatable)-compiler.keep-generated-actionscriptalias-keep-generated-actionscriptsavetemporarysourcefilesgeneratedduringMXMLcompilation(advanced)——保存Flex编译MXML过程中产生的临时AS源文件-compiler.library-path[path-element][...]alias-llistofSWCfilesordirectoriesthatcontainSWCfiles(repeatable)-compiler.locale[locale-element][...]alias-localespecifiesthelocaleforinternationalization(repeatable)-compiler.mxml.compatibility-versionversionalias-compatibility-versionspecifiesacompatibilityversion.e.g.-compatibility-version=2.0.1-compiler.namespaces.namespaceurimanifestalias-namespaceSpecifyaURItoassociatewithamanifestofcomponentsforuseasMXMLelements(repeatable)-compiler.optimizealias-optimizeEnablepost-linkSWFoptimization-compiler.servicesfilenamealias-servicespathtoFlexDataServicesconfigurationfile-compiler.show-actionscript-warningsalias-show-actionscript-warningsrunstheAS3compilerinamodethatdetectslegalbutpotentiallyincorrectcode-compiler.show-binding-warningsalias-show-binding-warningstogglewhetherwarningsgeneratedfromdatabindingcodearedisplayed-compiler.show-shadowed-device-font-warningsalias-show-shadowed-device-font-warningstoggleswhetherwarningsaredisplayedwhenanembeddedfontnameshadowsadevicefontname-compiler.show-unused-type-selector-warningsalias-show-unused-type-selector-warningstogglewhetherwarningsgeneratedfromunusedCSStypeselectorsaredisplayed-compiler.source-path[path-element][...]alias-splistofpathelementsthatformtherootsofActionScriptclasshierarchies(repeatable)-compiler.strictalias-strictrunstheAS3compilerinstricterrorcheckingmode.在FlashBuilder的工程属性里面可以设置。强制编译器进入strict模式,在Strict模式下,编译器对代码要求较高-compiler.theme[filename][...]alias-themelistofCSSorSWCfilestoapplyasatheme(repeatable)-compiler.use-resource-bundle-metadataalias-use-resource-bundle-metadatadetermineswhetherresourcesbundlesareincludedintheapplication.-compiler.verbose-stacktracesalias-verbose-stacktracessavecallstackinformationtotheSWFfordebugging(advanced)-compiler.warn-array-tostring-changesalias-warn-array-tostring-changesArray.toString()formathaschanged.(advanced)-compiler.warn-assignment-within-conditionalalias-warn-assignment-within-conditionalAssignmentwithinconditional.(advanced)-compiler.warn-bad-array-castalias-warn-bad-array-castPossiblyinvalidArraycastoperation.(advanced)-compiler.warn-bad-bool-assignmentalias-warn-bad-bool-assignmentNon-BooleanvalueusedwhereaBooleanvaluewasexpected.(advanced)-compiler.warn-bad-date-castalias-warn-bad-date-castInvalidDatecastoperation.(advanced)-compiler.warn-bad-es3-type-methodalia
本文标题:Flex编译器以及常用编译参数
链接地址:https://www.777doc.com/doc-3350320 .html