Mike Orth – Booya!

Flex, Actionscript

Archive for July, 2010

Targeting 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:transitions>
        <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 comments

Flex 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 comments

MikeOrthLib updated

I added a lot of new custom Flex components to my library, MikeOrthLib. It includes a PagedDataGrid control, some handy popup base classes, and other utility components.


Check out the example application
(work in progress).

Visit the project home page.

1 comment

Google Tracking Code