Layout For A Table

There are some hidden treasures deep in flex framework, you just have to dig for. Yesterday I hit by coincidence ConstraintLayout. Its a part of 4.5 SDK and is a nice layout for defining rows and columns for a table. Once columns and rows are created, your elements are not automaticaly aligned into a block, but rather any element can refer to any column/row using correct formula in style attributes. E.g. forumla left=”{columnId}:{value}” will attach your element into position of a column and offsetting it by some value. This layout also easily let you merge cells or rows etc.

Read the rest of this entry »

Quick Tip: Read timed out …/target/test-classes/TestRunner.swf

There has been a terrible issue blocking maven/flexmojos builds randomly with exception:

[INFO] Read timed out /home/user/project/target/test-classes/TestRunner.swf

Even there are some tips how to fix this issue, none of them worked for my case. After all unit tests were removed and one by one added back manualy, I was able to locate the tests causing it. Problematic appeared to be async unit tests and the random factor appeared to be cpu usage. In other words when flashplayer was not able to execute and finish async test, it failed with maven exception. Finally, the day was saved with changed testTimeout value:

<configuration>
    <testTimeout>60000</testTimeout>
    ...
</configuration>

Maven version: 2.2, Flexmojos: 3.8, Flex SDK: 4.1.0.16076, FlexUnit: 4.0-rc-1

Get Adobe Flash playerPlugin by wpburn.com wordpress themes