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.percentLoaded

Usage

galleryInstance.percentLoaded

Description

Property (read-only); a number that indicates the percentage of the xml is loaded. Typically, this property is used to present the progress to the user in an easily readable form. Use the following code to round the figure to the nearest integer:

Math.round(bytesLoaded/bytesTotal*100))

Example

The following example creates a listener object with a progress handler that traces the percent loaded and sends it to the output panel. 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;
var loadListener:Object = new Object();
loadListener.progress = function(evt_obj:Object) {
    trace("The xml is " + my_gallery.percentLoaded + "% loaded.");
};
my_gallery.addEventListener("progress", loadListener);
my_gallery.load("gallery.xml");


Comments

Be the first to write a comment

You must me logged in to write a comment.