2 Replies Latest reply on Sep 6, 2011 7:09 AM by oogabooga1979

    Display Random Image with PHP & MySQL (or not)

    oogabooga1979

      I'm using FlashBuilder to create an application that would randomly select two images and place each one in a box.  The user would click on the image they prefer, and then a new image would load in the box that they did not click...and so on ad infinitum.

       

      Right now I'm working on loading a random image.  I thought about putting all the images in a single directory, and using an HTTPService call to load the image, but I don't know how to randomize it, and if I have a lot of images (over 1,000), I'm concerned that using HTTPService might slow the application down.  Is there a way that I can use PHP and MySQL to load the images, and does anyone have any idea of how I would go about loading two random images?

       

      Most of my programming experience comes from WordPress, and I can load two random posts pretty easily with PHP.  But I'm not so sure how to do it using Flex.

       

      Can anyone point me in the right direction?