« Back to slideshowpro.net
SlideShowPro Help Wiki
Recent changes / Search

SlideShowPro for Flash

SlideShowPro for Lightroom

SlideShowPro Director

SlideShowPro Director Hosting

SlideShowPro ThumbGrid

Extras

Screencasts

SlideShowPro for Flash
onPreloadStart()
Page last modified by tdominey on April 17, 2008, at 06:40 AM

Usage

listenerObject = new Object();
listenerObject.onPreloadStart = function(eventObject):Void {
	// Insert your code here.
}
slideShowProInstance.addEventListener("onPreloadStart", listenerObject);

Description

Event; broadcast to all registered listeners when a slideshow image begins loading. The event object (eventObject) contains a continually updating Number that represents the percentage of bytes loaded. The minimum number is 0, while the maximum is 100.

Example

The following example writes the percentage loaded to a text field outside of the component:

listenerObject = new Object();
listenerObject.onPreloadStart = function(eventObject):Void {
	preload_txt.text = eventObject.data;
}
my_ssp.addEventListener("onPreloadStart", listenerObject);


© 2008 Dominey Design Inc. All Rights Reserved.
About | Contact | Privacy policy | License agreements