bobocel



Homepage testimonials


Content of the zip file:

  • Source folder
  • Deploy folder
  • Slider folder
  • Homepage.flp


  • Source folder
    Here you have three .as files, and two .fla files. The fla files are one and the same file, the only difference is that one version is saved for Flash 8. (this allows users that don't own Flash CS3 to open the file in Flash 8)

    XmlParse.as - is used to load the XML files.
    Prototypes.as - this file contains the prototype functions.
    Actions.as - this file contains the main code.

    The same folder/file structure is inside the Slider folder too because the Slider is a separate application, used in the main application.

    Deploy folder
    Contains all the files you need to upload to the server. Only these files should be on the web.



    Slider folder
    Contains the secondary application, used in the main swf file. These files are already in the main deploy folder, so you don't need to copy them.

    Homepage.flp
    Opens the entire Flash project, with all the Flash files needed to compile the main application.







    Functionality
    The deploy folder contains 12 xml files, one for each slide group, and two more testimonials.xml and settings.xml. The initial file is index.html, which is using the swfObject to load the homepage.swf file. This is the main file. Once loaded, the swf is reading the settings.xml and testimonials.xml files explained below, and after that it starts the application, by loading the slides one by one, randomly.

    When all the slides are loaded, it keeps the order in which these have been loaded and it fades between the images from each slide, one at a time, and keeps looping until the user interacts with the gallery.

    At the bottom of the gallery, the testimonials are displayed in random order. There can be any number of testimonials, as long as the text isn't longer than it can be visible in the remaining surface (which can be edited in the Homepage.fla if needed).


    Settings.xml

    You can use any text editor to change the values of the variables below.
















    Testimonials.xml

    The testimonials can be added in the XML using any text editor. These are displayed in random order, and the time between different testimonials is set in settings.xml; you can set a name as well.




    Effect

    At the moment, the fade in/out effect is used to display the images. This can easily be replaced with something more interactive, by following the next steps. I'll assume you are familiar with Flash.






    Contact

    Thank you for your time. Please contact me at [email protected] for any questions.