2 Replies Latest reply on Apr 4, 2011 2:58 AM by louiecueto

    Display image in an array format

    louiecueto Level 1

      I'm new to flex and I would really appreciate anyone who can help me. My  problem is I need to display an (1)image in columns and rows depending  on the user input. I have two text inputs one for length and width on  the other. Say the user inputs 5 for length and 6 for width so the  image will be displayed in a 5 x6 picture array(5 pictures in 6 rows).  Looking forward for your advise on how I can workon this. I hope I was able to explain my problem very well. Thank you in  advance.



        • 1. Re: Display image in an array format
          Shongrunden Adobe Employee

          You might find TileLayout to be useful.  It exposes a requestedColumnCount and requestedRowCount property.

          Here is a simple example:

          <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"




                  <s:HSlider id="colSlider" minimum="2" value="3" maximum="6" />



              <s:List width="100%" height="100%">


                      <s:TileLayout requestedColumnCount="{colSlider.value}" />





                              <s:Rect width="100" height="100">


                                      <s:SolidColor color="0xe3e3e3" />




                              <s:Label text="{data}" verticalCenter="0" horizontalCenter="0" />

























          1 person found this helpful
          • 2. Re: Display image in an array format
            louiecueto Level 1

            thank you so much I'll look into this.more power to you Shongrunden.