Flash Question

Out of context: Reply #8

  • Started
  • Last post
  • 10 Responses
  • PonyBoy0

    i gotta get to bed - it's 4am here.. :D

    ... quick answer to your Question - you need to build a container movieClip that houses all that content.

    What I'd do is create one module for each piece of content and make sure that module is available at runtime (this means you would have a custom movieClip ready in the library that is checked 'Export for Actionscript').

    I'm not sure where you're getting your content from - but what I'd do is set up an xml file with a set of nodes that look something like the following:

    <Project _Name="Project Name">
    <image _Location="http: // www.wherever .com/images/ imageA"/>
    <image _Location="http: // www.wherever .com/images/ imageB"/>
    </Project>
    <Project _Name="Project Name 2">... and so on...

    ... then feed each 'Project' node's content into a module exported at runtime...

    ... place each module in the containerMC based on a few things - the width of the Stage, the placement of the module before the module you're now placing in the container - and then of course the height of the stage - you'd use the same math to calculate the size of the modules on the row above...

    ... and the row above - the amount of modules would be based on the Stage.width...

    ... each time you resize the stage - you readjust the placement of the modules in that main container...

    ... there's a lot to 'take in' here - but the concepts are rather simple as is the math. :)

    • 'simple'... just time-consuming to understand the first time around (at least it was for me)... hope this helps - BED!!PonyBoy
    • highFive(PonyBoy)Autokern
    • PonyBoy.highFiveBack...

      :)
      PonyBoy
    • doh...
      PonyBoy.highFiveBack (Autokern) ;
      :D
      PonyBoy

View thread