Creating a slideshow

As we already discussed in the Making selections from a custom image (the push button and image component) recipe in Chapter 3, From a Static to an Interactive Dashboard, you can use the image component to show pictures or Flash (.swf) files in your dashboard. This recipe will show how you can create slideshows of multiple images and/or SWF files with the Slide Show component.

Getting ready

For this recipe, we need some images and/or SWF files. Make sure that these are files of the following types: .jpg, .png, .gif, .bmp, or .swf. The files can reside on your local computer or on the Web.

How to do it...

  1. Enter the URLs of the images or SWF files you want to show in the spreadsheet:
    How to do it...
  2. Drag a Play Selector component into the canvas. Set the component to insert rows to Destination cell A4. The Source field will be bound to the URL cells A5 to A8. For more information on this component, see the Using the Play Selector / Play Control component recipe in Chapter 3, From a Static to an Interactive Dashboard.
  3. Now drag a Slide Show component into the canvas.
  4. Bind the URL field to cell A4.
  5. Switch to the Behavior tab and set Transition Type to Wedge.
  6. Preview the dashboard to see how the Slide Show looks.
    How to do it...

How it works...

The Play Selector component does most of the work here actually. We need it to change the image that should be displayed by using data insertion. The slide show component only displays the images and provides a nice transition between two images.

There's more...

In the Appearance tab, there are some options that are specific to this component. First is Sizing Method, where you can set how the image or the SWF file should be displayed: in its original size, in scale, or stretched to the size of the component. Next, there are settings for Horizontal Alignment and Vertical Alignment. Besides these options the standard Transparency option is also available:

There's more...
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset