Get ready for BLACK FRIDAY shopping starting in

3D ImageFlow Gallery Reference

Dazzle your viewers with 3D photo navigation. Create an amazing gallery with cool  perspective effects in seconds and give your photos stunning 3d and camera effects.  The component is fully ActionScript 2 compatible.
 

Make sure to take a look at the online documentation as well.

Gallery.selectedItem

Usage

galleryInstance.selectedItem

Description

Property (read-only); the selected item in the gallery.

Example

The following example displays the description of the selected item:

trace(my_gallery.selectedItem.description);

The following example displays all properties of the selected item whenever the user navigates. To try this example, drag a Gallery component to the Stage and give it the instance name my_gallery. Add the following code to Frame 1 in the timeline:

var my_gallery:com.flzone.imageflow.Gallery;
my_gallery.addItem({url:"me.jpg", description:"This is me"});
my_gallery.addItem({url:"colleagues.jpg", description:"My colleagues"});
my_gallery.addItem({url:"office.jpg", description:"The office"});
var galleryListener:Object = new Object();
galleryListener.change = function(evt_obj:Object) {
    var tempStr:String = "[object";
    for (var prop:String in evt_obj.target.selectedItem) {
        tempStr += " " + prop + ":'" + evt_obj.target.selectedItem[prop] + "'";
    }
    tempStr += "]";
    trace(tempStr);
};
My_gallery.addEventListener("change", galleryListener);


Comments

Be the first to write a comment

You must me logged in to write a comment.