Expandable flash with div toggle?

Out of context: Reply #6

  • Started
  • Last post
  • 8 Responses
  • acrossthesea0

    Maybe this solution will work:

    1. Set the flash embed to 100% height so it will fill up the allotted vertical space in its containing div.

    2. Have a JS function that toggles the height of the div containing the flash area. This should automatically move down all the HTML content below as long as they are in the document flow. I'd actually use jQuery to handle this part since it has very simple built in animations.

    3. Call that function as needed from your flash piece using ExternalInterface.

    4. As the div resizes, your flash piece should also be resizing (since it was set to 100% height in the embed) and you should use eventlisteners to listen for stage size changes so you can anchor things to the bottom (like the video controls in the Norway example).

    5. Party

View thread