Category Archives: Flex

有关Flex,ActionScript,AIR…

Flex中的Localelization – MXML/ActionScript

使用MXML 或 ActionScript 均可进行Localelization,
但是在使用ActionScript载入resource, 不可在runtime通过ResourceManager.getInstance().localeChain来更改显示语言
而在MXML中, 会自动进行Bin

More…

Posted in ActionScript, Flex | Tagged , | Leave a comment

近日Java/Flex 编程小结,Log, Trace, toString, EventListener, weakreference, JDBC,ListCollectionView

1. Flex中的Trace, Java/Flex中的log, 并不能代表其真实行为.
2. 务必牢记重写toString方法
3. Flex: 在跨越幅度较大, 设计Obj较多时, 使用weakreference的 Event Listener
4. 关于weakreference, 相对普通re

More…

Posted in ActionScript, Java | Tagged , , , , , , | Leave a comment

Java/ActionScript – String.split(), 及For in 小结

Java 5.0中:
public String[] split(String regex)
    根据给定正则表达式的匹配拆分此字符串。
    该方法的作用就像是使用给定的表达式和限制参数 0 来调用两参数 split 方法。因

More…

Posted in ActionScript, Java | Tagged , , , | Leave a comment

在ActionScript 中使用HashMap – Use HashMap in ActionScript

HashMap:
HashMap的key必须为String类型, 如果要使用任意类型的key, 应选择使用Dictionay而非HashMap
主要操作如下:

private function init():void {
//新建对象
var obj:Object = new Objec

More…

Posted in ActionScript, Flex | Tagged , | 2 Comments

使用ActionScript建立DataGrid, 添加右键, 增加列, 并设定列的ItemRenderer

很多时候为了获得对组件的灵活控制, 不得不放弃MXML, 直接使用ActionScript.

Posted in ActionScript | Tagged , , , , | 6 Comments