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.next()

Usage

galleryInstance.next([step])

Parameters

step A optional parameter that specifies the amount to change. The default value is 1. Will move forward through the gallery.

Returns

Nothing.

Description

Method; Navigate to the next item in the gallery.

Example

The following example lets you move forward through the gallery using a button. To try this code, drag a Gallery component to the Stage and give it the instance name my_gallery. Next, drag a Button component to the Stage and give it the instance name next_button. Add the following code to Frame 1 in the timeline:

var my_gallery:com.flzone.imageflow.Gallery;
var next_button:mx.controls.Button;
prev_button.label = "Next";
my_gallery.addItem({url:"photo1.jpg"});
my_gallery.addItem({url:"photo2.jpg"});
my_gallery.addItem({url:"photo3.jpg"});
var buttonListener:Object = new Object();
buttonListener.click = function(evt_obj:Object) {
    my_gallery.next();
};
next_button.addEventListener("click", buttonListener);


Comments

Be the first to write a comment

You must me logged in to write a comment.