
Event Object Type: net.slideshowpro.slideshowpro.SSPDataEvent
SSPDataEvent.type property = net.slideshowpro.slideshowpro.SSPDataEvent.IMAGE_DATA
Language Version: ActionScript 3.0
Player Version: Flash Player 9.0.0.0
Dispatched immediately after slideshow content (video or image) is requested. Contains data about the content being loaded.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| data | An object containing data for the currently loaded image or video. |
The data object contains all img attributes (and their values) from the XML data loaded by SlideShowPro for Flash. Because the object is created automatically, you can include additional (non-supported) attributes if you have additional data you wish to use outside of SlideShowPro for Flash. "Supported" attributes (ones used by the component) include:
The following example sends the caption of the loaded image to the Output panel:
import net.slideshowpro.slideshowpro.*;
function onSlideShowData(event:SSPDataEvent) {
if (event.type=="imageData") {
trace(event.data.caption);
}
}
my_ssp.addEventListener(SSPDataEvent.IMAGE_DATA, onSlideShowData);
