Saturday, April 30, 2011
"What is new in FlashBuilder 4.5" session at 360Flex video
Sunday, April 24, 2011
FlashBuilder Tips and Tricks slides
In the end there are few more slides which I didn't show as they are already available in MAX 2010 and MAX 2009 videos.
There is also an article which contains most of the information presented but not all !
Wednesday, April 13, 2011
Use QuickAssist in FlashBuilder 4.5 to create labelFunction,iconFunction,dataFunction etc..
Steps :
1. Go to the component tag and use content assist to enter the *Function attribute.
Ex: <s:List labelFunction=""
2. Type the function name.
Ex: <s:List labelFunction="myLabelFunc"
3. With the cursor still between the quotes hit Ctrl+1 (or Cmd+1 on Mac).
4. You should something similar to the following
5. Select it and hit enter. FB should create the function with proper signature and go into linked mode.
For adventurous developers:
If you find the "Create function ..." option missing any particular Function property for any component you can edit the componentDescriptor.xml file (which can be found under the Adobe Flash Builder 4.5\eclipse\plugins\com.adobe.flexbuilder.mxml.editor_4.5.0.xxxxx directory) and add the entry yourself and fix it !
Caution : Save the original xml file in case you end up spoiling it.
How to use code templates to enter keywords without mistakes ?
${keyword:values(public, protected, private, function, implements, var, try, catch, class, interface, package)} ${cursor}
Now where ever I need to enter a keyword I just need to type "kw" and hit Ctrl+Space to get a popup showing all the keywords. (Note: Modify the list of keywords to suit your need)
Wednesday, January 20, 2010
New GroupingCollection2 class with improved perforamnce
Give it a try !
Thursday, December 24, 2009
4 items to check if a Flex 4 Application is leaking memory !
If you don't like to read lot of text the gist is to use weak references where ever possible.
1. addEventListener is being called with the default value of false for its useWeakReference flag.
2. bindProperty and bindSetter methods of BindingUtils are called with default value of false for its useWeakReference flag.
Please note: I don't know what is the equivalent thing in Flex 3.
3. ChangeWatcher.watch method is being called with default value of false for its useWeakReference flag.
Please note: I don't know what is the equivalent thing in Flex 3.
4. Dictionaries are being used with weakKeys flag in the constructor set to false.
Items 3 and 4 can cause some hidden links to be formed and memory to leak. More on that soon.