Flex 笔记

1.类似HTML中的display=none 的效果的实现

UIComponent    includeInLayout 属性

指定此组件是否包含在父容器的布局中。如果为 true,则该对象将包含在其父容器的布局中,并由其父容器根据其布局规则调整其大小并确定其位置。如果为false,则对象的父容器的布局不影响该对象的大小和位置。

默认值为 true。

此属性可用作数据绑定的源。修改此属性后,将调度 includeInLayoutChanged 事件。

API是这么介绍的,但实际应用时,设置 includeInLayout=false 时还要设置 visible=false 


2  Error: Could not find compiled resource bundle 'textLayout' for locale 'en_US'.

    利用资源文件加载,使用到 resourceManager.getStringArray('inventory_vod','status.disk'); 时报此错,原因是编译资源文件时resource-bundles少选了‘textLayout’这项,加上后就解决了


例:mxmlc -locale=en_US  -source-path="C:\Documents and Settings\Administrator\Adobe Flash Builder 4\pbn_oss_webresource\locale"/{locale}  -include-resource-bundles=inventory_vod,collections,components,containers,controls,core,effects,skins,styles,textLayout  -output inventory_vod_en_US.swf


Then just specify the whole bunch of ResourceBundle meta tags in the class that is giving the problem. In my case it was like this :

[ResourceBundle("collections")]
[ResourceBundle("components")]
[ResourceBundle("containers")]
[ResourceBundle("controls")]
[ResourceBundle("core")]
[ResourceBundle("effects")]
[ResourceBundle("layout")]
[ResourceBundle("logging")]
[ResourceBundle("messaging")]
[ResourceBundle("osmf")]
[ResourceBundle("rpc")]
[ResourceBundle("skins")]
[ResourceBundle("sparkEffects")]
[ResourceBundle("styles")]
[ResourceBundle("textLayout")]



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值