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

Usage

galleryInstance.bytesLoaded

Description

Property (read-only); the number of bytes the xml is loaded. 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.