Archive for May, 2011

Move Scroll bar on left side Flex4

I struggled a lot, but fixed it with easy tweak.
s:List Property -> layoutDirection=”rtl”
Note, in case you were using itemRenderer , make the reverse there to avoid arabic right to left effect by :
s:ItemRenderer Property -> layoutDirection=”ltr”


Random Password Generation

A Small Util Function to create random Password Generation

Parallel Computing in AS3 //P

Managed to create a Master – Slave architecture between a group of SWF Files.
This group will have a Master SWF which will command other slave swf’s to do certain processing.

This architecture might be helpful in distributing the processing to many files thus reducing the Memory being occupied in a Single SWF.

With IoC in proper form in future, will be successful editing the Slave SWF’s Dynamically.

Code for Master :

Code for Slaves :

This Architecture avails running multiple threads with different SWF files at same time

Firefox hanging on Debug

launch firefox -> about:config
Modify the value of  dom.ipc.plugins.timeoutSecs to -1

This helps hanging of firefox after default 45 seconds while debugging with break points in Flex

AS3 Design Patterns

Did prepared Presentation of AS3 Design Patterns :

Find the User Country from Flex

First of All, we need JSP / ASP for getting the IP Address, Example code: Link
After getting the IP, using the below IP Web Service we can find the End- User’s Country.

DAO / Pojo Generator for Java

Was unable to download the “DAO4J” best Open Source DAO generator of Java (Plugin for Squirrel Client).
At last found it from my Backups, will be useful tool for those looking for Pojo or DAO generation from any DB.

Get the Plugin from the link :