Category Archives: Flex

有关Flex,ActionScript,AIR…

Create Android Applications Using Flex – 使用Flex创建Android应用

随着FlashBuilder4.5的发布, 用户组里堆满了关于移动开发的帖子, 关于AIR能否火起来, AIR性能的问题, 暂不考虑, 没有调查没用应用就没有发言权. 但如果本身应用是基于Flex的, 很多类库或UI都可以复用, 在这种情况下如果要做移动应用, 那选择AIR无疑能够节省大量时间.

More…

Posted in Flex | Tagged , | Leave a comment

设计模式之策略模式: Strategy Design Pattern

适用情景:   假如有一组相关的算法, 客户需要从中动态选择一个来使用. 譬如: 学校中的新生分班, 有按照成绩分班, 按照性别分班, 按照住宿类型分班等等.  (当然实际情况中的分班考虑因素会更复杂一些)
最简单的方法是一个Method, 通过判断类型进行相应操作.

More…

Posted in Flex | Tagged , , | 1 Comment

About the overloading in Flex

Those days I’m looking a new job related to Java and Flex… Seems that this is a popular interview question, I event didn’t encounter it in the ACE. Bu

More…

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

Let the Flex thread sleep for a while

Sometimes we use thread.sleep to let the thread stop running for a while in Java, but in Flex, we can’t  control the thread, but sometimes we wan

More…

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

Flex Event stopimmediatepropagation VS stoppropagation

What’s the difference ? Here is the test codes:
We will create a button in a Group, and listen the button click event(MouseEvent.Click):
protected f

More…

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