My Account
Bookmark and Share

Art Photo Gallery

Art Photo Gallery organically blends with any design thanks to flexible appearance settings. You can publish any photos and images on your site in a matter of minutes using this photo gallery. More Info

Help  >  Art Flash Gallery  >  Flash Component  >  Component API


Art Flash Gallery - Component API


Method name Description
nextImage()

Goes to the next image.

Example
instanceName.nextImage();

prevImage()

Goes to the previous image.

Example
instanceName.prevImage();

startAutoPlay()

Enables slide show mode.

Example
instanceName.startAutoPlay();

stopAutoPlay()

Disables slide show mode.

Example
instanceName.stopAutoPlay();

setFullScreen()

Enables Full Screen mode.

Example
instanceName.setFullScreen();

setNormalScreen()

Disables Full Screen mode.

Example
instanceName.setNormalScreen();


Property name Description
XMLFile

Full Path to XML configuration file (contains filename).

To get value:
trace(instanceName.XMLFile);
To set new value:
instanceName.XMLFile="gallery.xml";

imagesFolder

Path to the folder with images.

To get value:
trace(instanceName.imagesFolder);
To set new value:
instanceName.imagesFolder="images/";

buttons

Button settings.

To get value:
trace(instanceName.buttons.fullScreenButton);
trace(instanceName.buttons.navigationButtons);
trace(instanceName.buttons.slideshowButton);
To set new value:
instanceName.buttons={fullScreenButton: true, navigationButtons: true, slideshowButton: false};

bgImage

Background image settings.

To get value:
trace(instanceName.bgImage.alpha);
trace(instanceName.bgImage.source);
To set new value:
instanceName.bgImage={alpha:100, source: "images/bg.jpg"};

image

Image settings.

To get value:
trace(instanceName.image.scaleMode);
trace(instanceName.image.cornerRadius);
trace(instanceName.image.align);
trace(instanceName.image.transitionEffect);
trace(instanceName.image.useShadow);
To set new value:
instanceName.image={scaleMode: "scaleToFitArea", cornerRadius: 10, align: "center", transitionEffect: "fade", useShadow: true};

thumbnail

Thumbnail settings.

To get value:
trace(instanceName.thumbnail.width);
trace(instanceName.thumbnail.height);
trace(instanceName.thumbnail.cornerRadius);
trace(instanceName.thumbnail.alpha);
trace(instanceName.thumbnail.outlineColor);
trace(instanceName.thumbnail.outlineColorOnRollOver);
trace(instanceName.thumbnail.outlineColorOnClick);
trace(instanceName.thumbnail.useShadow);
trace(instanceName.thumbnail.usePreview);
To set new value:
instanceName.thumbnail={width: 80, height: 60, cornerRadius: 10, alpha: 70, outlineColor: 0xFFFFFF, outlineColorOnRollOver: 0xFFFF00, outlineColorOnClick: 0x8B0000, useShadow: true, usePreview: true};

thumbBar

Thumbnail bar settings.

To get value:
trace(instanceName.thumbBar.scrollSpeed);
trace(instanceName.thumbBar.position);
To set new value:
instanceName.thumbBar={scrollSpeed: 10, position: "left"};

caption

Caption settings.

To get value:
trace(instanceName.caption.position);
trace(instanceName.caption.visibleMode);
trace(instanceName.caption.bgAlpha);
trace(instanceName.caption.color);
trace(instanceName.caption.bgColor);
trace(instanceName.caption.fontName);
trace(instanceName.caption.fontSize);
To set new value:
instanceName.caption ={position: "bottom", visibleMode: "onRollOver", bgAlpha: 40, color: 0xFFFFFF, bgColor: 0x000000, fontName: "Verdana", fontSize: 12};

preloader

Preloader settings.

To get value:
trace(instanceName.preloader.usePreloader);
trace(instanceName.preloader.alpha);
To set new value:
instanceName.preloader={alpha: 100, usePreloader: true};

preview

Preview settings.

To get value:
trace(instanceName.preview.width);
trace(instanceName.preview.height);
trace(instanceName.preview.alpha);
trace(instanceName.preview.outlineColor);
trace(instanceName.preview.cornerRadius);
trace(instanceName.preview.useShadow);
To set new value:
instanceName.preview={width: 200, height: 100, alpha: 100, outlineColor: 0xFFFFFF, cornerRadius=10, useShadow: true};

slideshow

Slideshow settings.

To get value:
trace(instanceName.slideshow.start);
trace(instanceName.slideshow.delay);
trace(instanceName.slideshow.loop);
trace(instanceName.slideshow.stopAutoOnClick);
To set new value:
instanceName.slideshow={start: false, delay: 4, loop: true, stopAutoOnClick: false};

sound

Sound settings.

To get value:
trace(instanceName.sound.onRollOver);
trace(instanceName.sound.onClick);
To set new value:
instanceName.sound ={onRollOver: "sounds/over.mp3", onClick: "sounds/click.mp3"};

picasa

Using images from picasa.com.

To get value:
trace(instanceName.picasa.user);
trace(instanceName.picasa.albumID);
To set new value:
instanceName.picasa ={user: "YOUR LOGIN", albumID: "ALBUM ID"};