Line Flash Gallery
A simple and compact flash gallery. The best solution for displaying your products, portfolios and services along with links to the detailed information.
Line 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();
|
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 | 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/";
|
| 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.width);
trace(instanceName.image.height);
trace(instanceName.image.scaleMode);
trace(instanceName.image.cornerRadius);
trace(instanceName.image.useBorder);
trace(instanceName.image.borderColor);
trace(instanceName.image.borderThickness);
trace(instanceName.image.borderAlpha);
trace(instanceName.image.useShadow);
trace(instanceName.image.bgColor);
trace(instanceName.image.bgAlpha);
trace(instanceName.image.borderThickness);
To set new value:
instanceName.image={width: 150, height: 120, scaleMode: "fill", cornerRadius: 0, useBorder: true, borderColor: 0xFFFFFF, borderThickness: 1, borderAlpha: 70, useShadow: false, bgColor: 0x0000FF, bgAlpha: 30};
|
| caption |
Caption settings.
To get value:
trace(instanceName.caption.color);
trace(instanceName.caption.fontName);
trace(instanceName.caption.fontSize);
To set new value:
instanceName.caption={color: 0xFFFFFF, fontName: "Verdana", fontSize: 11};
|
| preloader |
Preloader settings.
To get value:
trace(instanceName.preloader.usePreloader);
trace(instanceName.preloader.alpha);
To set new value:
instanceName.preloader={alpha: 100, usePreloader: true};
|
| scrollbar |
Scrollbar settings.
To get value:
trace(instanceName.scrollbar.bgColor);
trace(instanceName.scrollbar.bgAlpha);
trace(instanceName.scrollbar.handleColor);
trace(instanceName.scrollbar.handleAlpha);
trace(instanceName.scrollbar.arrowsColor);
trace(instanceName.scrollbar.arrowsAlpha);
trace(instanceName.scrollbar.innerShadow);
trace(instanceName.scrollbar.dropShadow);
To set new value:
instanceName.scrollbar={bgColor: 0xCCCCCC, bgAlpha: 70, handleColor: 0x808080, handleAlpha: 70, arrowsColor 0x808080, arrowsAlpha: 100, innerShadow: 0, dropShadow: 10};
|
| slideshow |
Slideshow settings.
To get value:
trace(instanceName.slideshow.start);
trace(instanceName.slideshow.delay);
To set new value:
instanceName.slideshow={start: true, delay: 2};
|
| sounds |
Sound settings.
To get value:
trace(instanceName.sounds.onScroll);
To set new value:
instanceName.sounds={onScroll: "snd.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"};
|