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

Usage

galleryInstance.bytesTotal

Description

Property (read-only); the size of the xml, in bytes. The default value is 0 until xml begins loading.

Example

With a Gallery component and a  ProgressBar component in the Library of the current document, the following code creates a progress bar an gallery instances. It then creates a listener object with a progress event handler that shows the progress of the load. The listener is registered to the my_gallery instance. Add the following code to Frame 1 in the timeline:

import com.flzone.imageflow.Gallery;
import mx.controls.ProgressBar;
this.createClassObject(Gallery, "my_gallery", 10);
this.createClassObject(ProgressBar, "my_pb", 20, {source:"my_gallery"});
my_gallery.move(1, 50);
my_pb.move(1, 1);
var loaderListener:Object = new Object();
loaderListener.progress = function(evt_obj:Object) {
    my_pb.setProgress(my_gallery.bytesLoaded, my_gallery.bytesTotal);
};
my_gallery.addEventListener("progress", loaderListener);
my_gallery.load("gallery.xml");


Comments

Be the first to write a comment

You must me logged in to write a comment.