fantero
/ flash & video
Details
Uploaded: 11 August 2010
Opens With: Flash CS3 (9+)
Files Included: Source files are included along with configuration xml file and image assets.
Size: 42kb
Action Script: AS3
Resolution: Resizeable
Documentation:
Keywords:
Do you like this file?
Configuration
Slideshow is a custom AS3 OOP class which makes it extremely easy to use. In order to use this slideshow you'll need to do two things. First, you need to load external xml file in which slideshow configuration and images are stored. Configuration XML file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<content>
<settings>
<timer>5000</timer>
<random>true</random>
<preloader>
<show>true</show>
<position>top</position>
<color>0x000000</color>
<height>5</height>
</preloader>
</settings>
<images>
<image url="assets/images/1.jpg" align="top"/>
<image url="assets/images/2.jpg" align="top"/>
<image url="assets/images/3.jpg" align="bottom"/>
<image url="assets/images/4.jpg" align="bottom"/>
<image url="assets/images/5.jpg" align="bottom"/>
</images>
</content>
The settings part defines slideshow properties:
The preloader part of xml defines preloader properties, in case you want to display preloader:
In case you want to use preloader with following properties you can customize it:
The bottom part is where you put your slideshow images:
Each "image" tag consists of two attributes:
- url where you specify path to image relative to you slideshow .swf file
- align where you specify "top" or "bottom" depending how you want to align you image. Images are resized
depending on user's screen resolution and image aspect ratio is preserved. Such a resizing can cause smaller region of image to not be visible so this "align" parameter will make it easy for you to specify wheather you always want you image's upper part to be visible and resizing will cause lower part of image to possibly be lost (align="top") or you want to make sure that your bottom part of image is always visible and during resizing small portion of top part of the image could possibly be lost (align="bottom")
Control
You can control (play/pause/exit slideshow) through context menu (right mouse click), also when click on image slideshow removes and dispatch an custom "SlideshowEvent.REMOVE" event.