2 Replies Latest reply on May 31, 2010 4:06 AM by Nirmal Kumar Bhogadi

    Loading Images

    Nirmal Kumar Bhogadi Level 1

      Hello All,

       

      I want to load all my images which I am saving in a Array Collection into a container and see them one by one through a Next button. Can someone tell me how can I achieve this.

       

      Thanks in advance,

      Nirmal Kumar Bhogadi

        • 1. Re: Loading Images
          Rdsingh Ldh

          Hi Nirmal,

           

           

          U have array which contians the list of images that u want to display..

           

          Use image tag in the container, use a variable and name it as index, and set it to zero initially. So initially load the image having index 0 in the image tag ..... u can do this by giving src of the img as _arr[index]................

           

           

          So now ur img tag will look like <mx:image src={_arr[index]}  />....................................

           

          this will load image which is at index 0 of ur array..............and now on click on button just increment the index by 1 and then set the new values to the src for the img..................... and this solve ur problem.

           

          Hopefully this works for you.............. If not then do let me know...

          • 2. Re: Loading Images
            Nirmal Kumar Bhogadi Level 1

            Perfect...Thanks a lot!!!