首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > flex >

flex module加载一部分组件样式丢失

2012-09-10 
flex module加载部分组件样式丢失问题:flex使用module加载swf,部分组件样式丢失(datefield RadioButton)解

flex module加载部分组件样式丢失
问题:

flex使用module加载swf,部分组件样式丢失(datefield RadioButton)

解决方法:

方案一.在Application主文件里面放入丢失样式的组件,并设置组件属性visible=false.

方案二.在flex编译属性配置文件(.actionScriptProperties)编译参数中加上-keep-all-type-selectors=true。如下配置:

<compiler additionalCompilerArguments="-services &quot;x:/workspace/xxx/WebRoot/WEB-INF/flex/services-config.xml&quot; -keep-all-type-selectors=true -allow-source-path-overlap=true -source-path=com/cist/gis/config -locale zh_CN" autoRSLOrdering="true" copyDependentFiles="true" flex3CompatMode="false" fteInMXComponents="false" generateAccessible="true" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="WebRoot" removeUnusedRSL="true" rootURL="http://localhost:8080/xxx" sourceFolderPath="flex_src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true">

热点排行