ColdFusion Muse

Flash UI and dynamic Sizing

Mark Kruger May 19, 2005 4:17 PM CFMX 7 Flash Forms, Flash Remoting Comments (3)

Although I love flash for UI's, there are things about it that are tough to work around. One of them is the "fixed size" nature of the medium. When working with a multi-paned Flash object I often find myself writing javascript functions to resize the movie container based on the amount of data in the pane. I hate having tons of empty space in pane "A" just because pane "B" needs the real-estate. Or having to size the movie quite long because one of the panes is extra long. I want the embeded object to work like a really well-made CSS site. I want to "fix" the size of some things (navigation, info or helper clips), but make the "content area" fluid - like a good three column layout (is there such a thing - ha). It would be great if the publish options simply included an "auto-size" option that embeded the necessary JS in the page. Maybe an item for the wish list eh?

  • Share:


  • ethan's Gravatar
    Posted By
    ethan | 5/19/05 4:15 PM
    if you have a stadard set of code you already developed you could add it as a html template and then publish to that.
  • mkruger's Gravatar
    Posted By
    mkruger | 5/19/05 4:20 PM
    That's a great tip. How would I link up the "movie" with the javascript? Right now I use the "id" param of the movie to fiddle with the width and height. I would still have to edit that var - right?

    Also, where is the template located?
  • Hans Omli's Gravatar
    Posted By
    Hans Omli | 5/19/05 11:03 PM
    This is one of the things I love about Flex. :-)