TextArea with dynamic height based on the text

I am sure all the Flex/Air developers might have to use text area most of the times when you are building an application. Text area control with dynamic height seems not be an issue in normal cases but if the height needs to calculated based on text in the control then we need to think. I had the same requirement. Of course no SCROLLS.

I extended mx.controls.TextArea and here is what  I did quickly.

This worked for me.Maybe there is a better way to do this. Let me know if you have tried this in a different way

Cheers. 🙂

Advertisements

AIR – Process terminated without establishing connection to debugger

This is strange and I am not sure if anybody else had the same  experience . Today morning when I opened Flex builder to continue my work on an AIR  application after couple of builds and runs the application stopped launching. I tried several times and was confused as to what could have happened to the application that was running perfectly last time. Then I tried debugging it only to find a prompt which says -“Process terminated without establishing connection to debugger”.

To find a fix to this I turned to the only hope for all developers GOOGLE and found that there was a similar issue reported to the Adobe BugList http://tinyurl.com/d3ws5h but this issue was reported only for MAC machines and mine was windows.

It suddenly struck my mind that it was after the application threw a runtime error all this started and curiously I opened the taskmanger and BINGO!! here it is adl.exe is still running. I ended adl process in the task manager and everything was to normal. The adl.exe which is located inside the bin folder under sdk folder of the Adobe Flex  installation directory is the factor which launches your AIR application (something like C:\Adobe\Flex Builder 3\sdks\3.4.0\bin).

Now what could have happened is when the application threw a run time exception even though the application was closed the instance of adl.exe was still running in the system which prevented the next launch.  This might not be proper fix but surely which can get you out of trouble. I wonder if anybody else had faced the same problem if yes, do let me know if you had some other way to fix this.

Adobe DevSummit, ’09 Hyderabad

I was  busy and  a bit lazy about writing for the last two months 😉 Well,  This was the very first time for me  to attend an event held by Adobe. I always wanted to attend similar developers conferences(in most of the cases the busy schedules do not permit me to attend such conferences) which I believe will make you aware of the new things in the market as well as an introduce you to the enhancement made to platform that you work on. The major thing which you feel after attending such conferences is that it gives you a clear idea on where you stand in terms of the technology of platform that you are working on.

The event held at Taj Krishna, Hyderabad was really a grand one which pulled in huge amount of people from different technical backgrounds. The event started off with the session from Ramesh Srinivasaraghavan, senior scientist @ Adobe about the future of Adobe Flash Platform which was a real inspiration for people like me. Also , the sessions on Flash Catalyst by Harish and about DCD in Flash Builder by Sujit was really rocking. Other sessions from people from Adobe and other community geeks was also interesting. Overall, the event was very informative for the community and an oppurtunity for networking.

It is true and I did feel that sessions become more interesting once the speaker start showing live demos. The audience love it and get more involved.
Looking forward to be there in such events next year.

Flash & Flex Developer’s Magazine

FFD

Flash & Flex Developer’s Magazine stands out to be a very informative magazine based on flash platform. Actually it  is very rare to find magazines like FFD that is completely dedicated to the Flash world.Personally I am following this magazine and also have read some articles which I think was very informative. The magazine majorly focuses on articles/topics that are useful for developers who have experience working on flash platforms. What more the magazine will be 100% digitally published from September 2009 onwards and absolutely free so that every readers can download an issue. The latest update is that the June issue is free for download … Go check it out 🙂