Apache已同意接收Adboe Flex – Flex enters Apache incubation

I am pleased to announce that Flex as been accepted into the Apache Incubator. With weekends and holidays, I suspect that it will still be several days before we get up and running with mailing lists, bug base, source control, etc, so we continue to appreciate your patience. However, I’m really look

More…

by 老李 | Tagged , | Leave a comment

2011 -> 2012

2011的最后一天,外面飘着雪花。 房子里很热, 外面很冷。
这一年其实没有太多变化。
收音机里的电池还能用, 每天晚上都能听一会儿947。
2011年的尾巴上, 我回到了新疆。
好久不见。
乌鲁木齐也没有太多改变, 冬天还是老样子,阴沉,灰白。
见了一些同学好友,想跟他们好好叙叙旧, 结果他们把我放倒,再放倒,直到我记不清这是哪一年,直到我莫名其妙的醒来,醒来又醉过去。
这真不是个随便的地方, 想来不一定能来, 想走还不一定能走, 因为他们太能喝了。
回了学校两次, 边边角角都有太多回忆, 甜的酸的竟然都统统变成苦的了,
直到我到了红胡,看到那破桥上零散的关于爱或是理想的碎碎念,哦, 其实大

More…

by 老李 | 1 Comment

How to display errorString in a Datagrid ItemEditor?

There is a datagrid displaying users:
image
And this datagrid is editable ,  we can modify username directly, by default, Flex will use TextInput as the item editor.
I want to display some error mesg in a datagrid ItemEditor when use input is invalidate.
Using Alert – not good enough
So I add a list

More…

by 老李 | Tagged , , | Leave a comment

Replace all by Split/RegEx in ActionScript

Problem
We need replace all method.
Solution
use RegEx or split&jion;
Detailed explanation
We can use the following two methods:
private function testFlexStringReplaceAll():void {
var strSource:String = “Li_guo_Liang.com”;
trace(strSource + ” – ” + replaceAllBySplit(strSource, “_”, “”));

More…

by 老李 | Tagged , | Leave a comment

Flex: verticalScrollPolicy auto/on/off

最近碰到一个问题: 当Flex右侧垂直滚动条出现时, 下方水平滚动条必定随之出现, 详细的描述就是:
该UIComponent高度一定, 宽度设置为percent(也就是说宽度可以变化), 当Add一个内部组件到该UI上后, UI需要更多高度, 但高度一定, 只好出现右侧滚动条(默认的ScrollPolicy为auto), 假使被增加组件的宽度与外部组件宽度一致, 此时由于滚动条的出现, 外部UI不能直接完整显示该组件, 于是出现水平滚动条,.
Flex API中有关内容: Sizing components http://livedocs.adobe.com/flex/3/html/help

More…

by 老李 | Tagged , , | Leave a comment