adobe air

Show debug error window of installed AIR application

By default, the debug error window are suppressed for an installed AIR application. Sometimes you may want to enable it (say to gather information from internal test users). Here is how: After installation, create an empty file “debug” in
Xu Cui
13 sec read

Dynamic height of TextArea (Flex and AIR)

Believe it or not, this is actually not trivial. Instead of getting text height from TextArea.textHeight, retrieving from TextArea.textField.textHeight works. Also note validateNow() before TextArea.textField.textHeight. <?xml version="1.0&qu
Xu Cui
7 sec read

p2p connection with Adobe AIR/Flex

check out Stratus. With Stratus you can create: A video chat application Multi-player games Voice Over IP Also check out this tutorial
Xu Cui
4 sec read

AIR or Flex: Double click datagrid doesn’t work?

If so, you might forget to set doubleClickEnabled=true for the datagrid.
Xu Cui
2 sec read

Localize AIR/Flex applications

The very first thing to do is to create a locale file using copylocale utility. e.g. copylocale en_US zh_CN More detail can be found in http://www.herrodius.com/blog/123 and here is a copy from there: – open a command line (run as administrator
Xu Cui
22 sec read

Data binding using pure actionscript

To call a function when a property of an object changes, use the following code BindingUtils.bindSetter(callThisFunction, aObject, "prop"); Note, callThisFunction is a setter (need one argument and return void) In MXML it’s easy to bin
Xu Cui
1 min read

View 200+ AIR/Flex samples (Tour de Flex)

http://flex.org/tour Especially checkout two applications: 1. Badger 2. Transparent video window
Xu Cui
2 sec read

regular expression in actionscript

lazy quantifier: Add a question mark (?) after any quantifier to change it to what is known as a lazy quantifier. For example, the following regular expression, which uses the lazy *? quantifier, matches <p> followed by the minimum number of ch
Xu Cui
11 sec read

Lock datagrid column width

In my datagrid, even when I set the width of some columns explicitly, they always change in an unpredictable way when I (1) resize my window (2) minimize and maximize the window. I finally find the cause: it’s because I used “minWidthR
Xu Cui
13 sec read