Archive for the 'Tips' Category
Slider Increment – snapInterval
For future reference, trying to remember what the property name was for the interval or step size for a slider. The property is named “snapInterval”
No commentsTargeting the Right Component for Transitions
When doing any state transitions, you have to be sure to specify the intended target. For instance, recently I was debugging some client code to see why a fade wasn’t working. It turned out that the target was set to the parent group instead of each specific component.
<s:Transition fromState="*" toState="*">
<!-- INCORRECT way of doing it:
Don't target the parent container-->
<s:Fade target="{[content]}"/>
<!--CORRECT: target each specific component-->
<s:Fade targets="{[pageOne, pageTwo]}"/>
</s:Transition>
</s:transitions>
<s:Group id="content">
<local:PageOne id="pageOne" includeIn="one"/>
<local:PageTwo id="pageTwo" includeIn="two"/>
</s:Group>
In this case, you need to target pageOne and pageTwo, NOT content.
No commentsFlex Formatter
After moving from projects that religiously used FlexFormatter to one that didn’t, I realized just how nice this plugin is. If by chance you haven’t heard of it, FlexFormatter is an eclipse plugin that will format spaces, tabs, declarations, reorder properties & functions, indent, and lots more.
To install, use the update site http://flexformatter.googlecode.com/svn/trunk/FlexFormatter/FlexPrettyPrintCommandUpdateSite.
No commentsFlash Builder 4 Beta / FB3 – “Removing compiler problem markers” error
If you’ve played with the new Flash Builder 4 Beta, you may have wanted to test out your existing projects in it. And like me, you may have just quickly pointed it to an existing workspace to import a project. If you haven’t – DON’T. Once you switch back to Flex Builder 3, you will start getting An internal error occurred during “Removing compiler problem markers…”
This is because FB4 is built on a different version of Eclipse and modifies your workspace files (not your .project files), i.e. it hoses your existing workspace. To get rid of it, just create a new workspace in FB3 and import your projects there.
1 commentHow to use a DataGrid with no column headers
This is one of those quirky things that is not all that well documented. I had a client that needed a datagrid but didn’t want the header row. It sparked the memory of struggling to find how to do this the first time I needed it. So hopefully this will help end your search for the answer