AutoViewer Configuration Options

AutoViewer can be customized by setting the following options.

XML Options

Modify XML Options by editing gallery.xml in any text editor. The XML options are found at the top of the file as attributes of the 'gallery' tag.

Option Name Default Value Description
frameColor 0xFFFFFF Color of image frame (hexadecimal color value e.g "0xff00ff").
frameWidth 10 Width of image frame in pixels.
imagePadding 20

Distance between images in pixels.

displayTime 6

Number of seconds each image will display in auto-play mode.

enableRightClickOpen false Whether to display the "Open Image in New Window..." right-click menu option.

HTML Options

Modify HTML Options by editing the HTML file that contains AutoViewer in any text editor. HTML options are set with JavaScript in this format:

fo.addVariable("xmlURL", "gallerydata.xml");

The first parameter is the name of the option. The second parameter is the required value. Both parameters require quotation marks.

Option Name Default Value Description
xmlURL "gallery.xml" Relative or absolute URL of the gallery XML file. Relative paths are relative to the HTML page that contains the swf.
langOpenImage "Open Image in New Window" The text displayed for the right-click 'Open Image in New Window' menu option. Can be used to translate AutoViewer into a non-English language.
langAbout "About" The text displayed for the right-click 'About' menu option. Can be used to translate AutoViewer into a non-English language.

Pro Options

These options are supported by AutoViewer-Pro only. These options are modified by editing the Options.as file, then republising your SWF. For instructions on how to do this, check here.

Option Name Default Value Description
playAtStart false Defines whether to automatically start playing.
loopAutoplay true Defines whether to loop to first image after showing last image
enableImageDownScaling true

Defines whether images are resized smaller to fit stage

enableImageUpScaling false

Defines whether images are resized larger to fit stage

leftAlignImages false Defines whether to left align the first image
preloadAllImages true Defines whether to preload all the images automatically (true), or to load images only when they are viewed (false).
unselectedBrightness -120 Brightness applied to unselected images (-255 = black, 255 = white)
initialBrightness -255 Brightness applied to first image when loaded (-255 = black, 255 = white)
useSmoothing true Whether to smooth resized images. Setting this to true improves image quality but uses more CPU resources. If you have a large gallery that is running slowly, setting this to false may help.
enablePlayButton true Defines whether to enable the Play Button
enableArrowButtons true Defines whether to enable the Next/Back Buttons
hideControlsOnRollOut true Defines whether to hide buttons on mouse roll out
controlsHPadding 0 Horizontal padding between next/back buttons and stage edge in pixels
controlsVPadding 10 Vertical padding between play button and stage bottom in pixels
showCaptions true Defines whether to show Image Captions
showImageNumbers true Defines whether to show Image Numbers
imageNumberFontSize 20 Font size of image number text
imageNumberColor #FFFFFF Image Number Hex color value
captionPadding 20 Padding between captions and image edge in pixels
XMLPath gallery.xml Relative or absolute path to XML file. This value is overriden by 'xmlURL' in HTML option).
slideAnimationLength 20 Tween length in frames
colorFadeAnimationLength 30 Tween length in frames