My Account
Bookmark and Share

Photo Flow Flash Gallery

Use the famous streamline photo flow effect on your website. This effect is well known because of the cover flow gallery switching from iTunes. More Info

Help  >  PhotoFlow Gallery  >  Flash Component  >  Component API


PhotoFlow Flash Gallery - Component API


Method name Description

addItem(newItemObj:Object);

Adds a new image to the album.

newItemObj — specified in the following way:
newItemObj.source: String — Path to the image file (or library symbol name)
newItemObj.description: String — Image description
newItemObj.link: String — Link, which activates when user click on image
newItemObj.target String — Target of link, it may have four values:


  • "_self" specifies the current frame in the current window.
  • "_blank" specifies a new window.
  • "_parent" specifies the parent of the current frame.
  • "_top" specifies the top-level frame in the current window.

Example
instanceName.addItem({source:"image1.jpg";, description: "Bu Ga Ga!", link:"http://www.flash-gallery.com" , target:"_blank"} );

buildGallery();
This method either creates a new gallery or rebuilds an existing gallery basing on the given settings.

Example
gallery.buildGallery();

Property name Example

imagesFolder

Path to the folder with images

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

imageAngle

Angle of images

To get value:
trace(instanceName.imageAngle);
To set new value:
instanceName.imageAngle =30;

useScrollBar

Show/hide scroll bar

To get value:
trace(instanceName.useScrollBar);
To set new value:
instanceName.useScrollBar =true;

slideshow

Slideshow mode on/off

To get value:
trace(instanceName.slideshow);
To set new value:
instanceName.slideshow =true;

slideShowDelay

Image display duration in Slideshow mode (in seconds)

To get value:
trace(instanceName.slideShowDelay);
To set new value:
instanceName.slideShowDelay=2;

flipDuration

Flip duration

To get value:
trace(instanceName.flipDuration);
To set new value:
instanceName.flipDuration=1;

flipSound

Flip sound

To get value:
trace(instanceName.flipSound);
To set new value:
instanceName.flipDuration="flip.mp3";

colorScheme

Color scheme

To get value:
trace(instanceName.colorScheme);
To set new value:
instanceName.colorScheme="black";

currentCentralImage

current number of central image

To get value:
trace(instanceName.currentCentralImage);
To set new value:
instanceName.currentCentralImage=5;

startPosition

The initial position of the gallery

To get value:
trace(instanceName.startPosition);
To set new value:
instanceName.startPosition="right";

XMLFile

Full Path to XML configuration file (contains filename)

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