On ColdFusion MX7 Flash Forms And Macromedia Flex

I wrote an article for Macromedia’s Edge newsletter on Flash Forms and Flex, explaining the similarities and differences, and clarifying when to use each. The article entitled ColdFusion MX 7: Creating Flash Forms with Ease and Flex-ability is now online (see section 2).

3 responses to “On ColdFusion MX7 Flash Forms And Macromedia Flex”

  1. Oliver Merk Avatar
    Oliver Merk

    Hi Ben,
    Good overview. One problem I’ve been trying to solve with tabbed Flash forms: Is it possible to programatically change the focus from one tab to another? I’ve tried creating a button with an onclick event (onclick="formname.tabname.focus()") but can’t seem to get it to work. Even tried putting some Actionscipt in the onclick statement but no luck. Is this even possible with CF Flash forms?

  2. Dave Phipps Avatar
    Dave Phipps

    This should work: Replace your button with the following:
    <cfinput type = "button" name="cont_submit" width="100" value = "Next Tab" onclick="_root.cont_submit._parent._parent._parent.selectedIndex=1">
    This was from Tim Buntel’s blog on flash forms.

  3. Oliver Merk Avatar
    Oliver Merk

    Thanks Dave!
    I finally got it to work by using *four* ._parent tokens.

Leave a Reply