
| Document player compatibility |
|---|
| SlideShowPro Director |
| SlideShowPro Player SWF |
| SlideShowPro Player for Flash (ActionScript 3) |
| Note: If using the ActionScript 2 Flash component, please see Events (AS2). |
Events are broadcasted by the SlideShowPro player to communicate noteworthy occurrences like data and content loading, drawing, and behavior. Some events include event object data that can be retrieved and used outside of the SWF.
Dispatched immediately after an album is requested. Contains data about the album being loaded.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| data | An object containing data for the current album |
The data object contains the following properties:
The following traces how many images are in the current album:
import net.slideshowpro.slideshowpro.*;
function onSlideShowData(event:SSPDataEvent) {
if (event.type=="albumData") {
trace("total images: " + event.data.totalImages);
}
}
my_ssp.addEventListener(SSPDataEvent.ALBUM_DATA, onSlideShowData);
Dispatched when a slideshow attempts to load another piece of slideshow content from an album and none exists. This event only fires when a slideshow is in auto-playback mode and additional content is requested from an album that doesn't contain more.
The following example redirects the web browser to a new URL when reaching the end of an album:
import net.slideshowpro.slideshowpro.*;
function onAlbumEnd(event:SSPAlbumEvent) {
var request:URLRequest = new URLRequest("http://slideshowpro.net/");
navigateToURL(request,"_self");
}
my_ssp.addEventListener(SSPAlbumEvent.ALBUM_END, onAlbumEnd);
Dispatched when an album is loaded.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| id | The id of the affected album. |
The following traces the ID of the album that has started to the Output panel.
import net.slideshowpro.slideshowpro.*;
function onAlbumStart(event:SSPAlbumEvent) {
trace(event.id);
}
my_ssp.addEventListener(SSPAlbumEvent.ALBUM_START, onAlbumStart);
Dispatched when display mode is toggled from auto playback to manual (and vice versa).
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| mode | A string that's assigned either "Auto" or "Manual" when display mode changes. |
The following traces the current playback state whenever it changes:
import net.slideshowpro.slideshowpro.*;
function onModePlaybackEvent(event:SSPModePlaybackEvent) {
trace(event.mode);
}
my_ssp.addEventListener(SSPModePlaybackEvent.DISPLAY_MODE, onModePlaybackEvent);
Dispatched when the gallery has reached its final position after a close request has been made.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
The following traces to the Output panel the current visual state of the gallery.
import net.slideshowpro.slideshowpro.*;
function onGalleryStateEvent(event:SSPGalleryStateEvent) {
trace(event.type);
}
my_ssp.addEventListener(SSPGalleryStateEvent.GALLERY_CLOSED, onGalleryStateEvent);
Dispatched when the gallery begins to close.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
The following traces to the Output panel the current visual state of the gallery.
import net.slideshowpro.slideshowpro.*;
function onGalleryStateEvent(event:SSPGalleryStateEvent) {
trace(event.type);
}
my_ssp.addEventListener(SSPGalleryStateEvent.GALLERY_CLOSING, onGalleryStateEvent);
Dispatched once at the beginning of a slideshow after XML data has been successfully loaded and parsed into a readable array.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| data | An object containing data for the loaded gallery |
The data object contains a multidimensional array with the following inside:
[[albumObject,[imageObjectArray]]]
Each albumObject contains the same properties delivered by ALBUM_DATA, while the imageObjectArray is an array of image objects containing the same properties delivered by IMAGE_DATA.
The following example traces the title of the third album to the Output panel:
import net.slideshowpro.slideshowpro.*;
function onSlideShowData(event:SSPDataEvent) {
if (event.type=="galleryData") {
trace(event.data[2][0].title);
}
}
my_ssp.addEventListener(SSPDataEvent.GALLERY_DATA, onSlideShowData);
The following example traces the number of images in the third album to the Output panel:
import net.slideshowpro.slideshowpro.*;
function onSlideShowData(event:SSPDataEvent) {
if (event.type=="galleryData") {
trace(event.data[2][1].length);
}
}
my_ssp.addEventListener(SSPDataEvent.GALLERY_DATA, onSlideShowData);
The following example traces the caption of the fifth image in the third album to the Output panel:
import net.slideshowpro.slideshowpro.*;
function onSlideShowData(event:SSPDataEvent) {
if (event.type=="galleryData") {
trace(event.data[2][1][4].caption);
}
}
my_ssp.addEventListener(SSPDataEvent.GALLERY_DATA, onSlideShowData);
Dispatched when the gallery is hidden out of view.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
The following traces to the Output panel the current visual state of the gallery.
import net.slideshowpro.slideshowpro.*;
function onGalleryStateEvent(event:SSPGalleryStateEvent) {
trace(event.type);
}
my_ssp.addEventListener(SSPGalleryStateEvent.GALLERY_HIDDEN, onGalleryStateEvent);
Events are broadcasted by the SlideShowPro player to communicate noteworthy occurrences like data and content loading, drawing, and behavior. Some events include event object data that can be retrieved and used outside of the SWF.
Dispatched immediately after gallery data is parsed.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| data | Container object for the gallery title and description. |
The data object contains two properties:
The following example sends the title of the gallery to the Output panel:
import net.slideshowpro.slideshowpro.*;
function onGalleryInfo(event:SSPDataEvent) {
trace(event.data.title);
}
my_ssp.addEventListener(SSPDataEvent.GALLERY_INFO, onGalleryInfo);
Dispatched when the gallery has reached its final position after an open request has been made.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
The following traces to the Output panel the current visual state of the gallery.
import net.slideshowpro.slideshowpro.*;
function onGalleryStateEvent(event:SSPGalleryStateEvent) {
trace(event.type);
}
my_ssp.addEventListener(SSPGalleryStateEvent.GALLERY_OPEN, onGalleryStateEvent);
Dispatched when the gallery begins to open, but hasn't finished animating.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
The following traces to the Output panel the current visual state of the gallery.
import net.slideshowpro.slideshowpro.*;
function onGalleryStateEvent(event:SSPGalleryStateEvent) {
trace(event.type);
}
my_ssp.addEventListener(SSPGalleryStateEvent.GALLERY_OPENING, onGalleryStateEvent);
Dispatched when a request to toggle the open/close state of the gallery is made.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
The following traces to the Output panel the current visual state of the gallery.
import net.slideshowpro.slideshowpro.*;
function onGalleryStateEvent(event:SSPGalleryStateEvent) {
trace(event.type);
}
my_ssp.addEventListener(SSPGalleryStateEvent.GALLERY_TOGGLED, onGalleryStateEvent);
Events are broadcasted by the SlideShowPro player to communicate noteworthy occurrences like data and content loading, drawing, and behavior. Some events include event object data that can be retrieved and used outside of the SWF.
Dispatched when slideshow content is aligned.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| w | The formatted width of the slideshow content. |
| h | The formatted height of the slideshow content. |
| x | The current x position of the slideshow content. |
| y | The current y position of the slideshow content. |
The following traces the x and y position of the aligned content.
import net.slideshowpro.slideshowpro.*;
function onImageAlignEvent(event:SSPImageFormatEvent) {
trace(event.x + " " + event.y);
}
my_ssp.addEventListener(SSPImageFormatEvent.IMAGE_ALIGN, onImageAlignEvent);
Dispatched when slideshow content is clicked by the viewer's mouse.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| num | The numerical order of the content. |
| zone | The area within the content area that was clicked. Returns "previous", "action" or "next". |
"previous" is dispatched when the mouse clicks on the left side of the content area, and "next" when the mouse clicks on the right. Both of these are only broadcasted when contentAreaInteractivity is set to "Action Area and Navigation". "action" is dispatched when the mouse clicks the center area, and is broadcasted in both "Action Area and Navigation" and "Action Area Only" settings for contentAreaInteractivity.
The following example traces which area was clicked.
import net.slideshowpro.slideshowpro.*;
function onSlideShowClick(event:SSPImageEvent) {
if (event.type=="imageClick") {
trace(event.zone + " was clicked");
}
}
my_ssp.addEventListener(SSPImageEvent.IMAGE_CLICK, onSlideShowClick);
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 the SlideShowPro player. Because the object is created automatically, you can include additional (non-supported) attributes if you have additional data you wish to use outside of the player. "Supported" attributes (ones used by the component) include:
isLast: (Boolean) If the asset is last in the album, this returns true. Otherwise false.
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);
Dispatched when slideshow content is resized.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| w | The formatted width of the slideshow content. |
| h | The formatted height of the slideshow content. |
| wo | The original width of the slideshow content. |
| ho | The original height of the slideshow content. |
| x | The current x position of the slideshow content. |
| y | The current y position of the slideshow content. |
The following traces the formatted width/height of the slideshow content.
import net.slideshowpro.slideshowpro.*;
function onImageFormatEvent(event:SSPImageFormatEvent) {
if (event.type=="imageFormat") {
trace(event.w + " " + event.h);
}
}
my_ssp.addEventListener(SSPImageFormatEvent.IMAGE_FORMAT, onImageFormatEvent);
Dispatched when slideshow content successfully loads.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| num | The numerical order of the content. |
The following traces the numerical position of the image/video that has loaded:
import net.slideshowpro.slideshowpro.*;
function onImageLoad(event:SSPImageEvent) {
trace(event.num);
}
my_ssp.addEventListener(SSPImageEvent.IMAGE_LOAD, onImageLoad);
Dispatched when slideshow content is rolled-out by the viewer's mouse.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| num | The numerical order of the content. |
The following traces to the Output panel "over" or "out" when a user's mouse rolls into and out of slideshow content.
import net.slideshowpro.slideshowpro.*;
function onImageEvent(event:SSPImageEvent) {
if (event.type=="imageRollOver") {
trace("over");
}
if (event.type=="imageRollOut") {
trace("out");
}
}
my_ssp.addEventListener(SSPImageEvent.IMAGE_ROLLOUT, onImageEvent);
my_ssp.addEventListener(SSPImageEvent.IMAGE_ROLLOVER, onImageEvent);
Dispatched when slideshow content is rolled-over by the viewer's mouse.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| num | The numerical order of the content. |
The following traces to the Output panel "over" or "out" when a user's mouse rolls into and out of slideshow content.
import net.slideshowpro.slideshowpro.*;
function onImageEvent(event:SSPImageEvent) {
if (event.type=="imageRollOver") {
trace("over");
}
if (event.type=="imageRollOut") {
trace("out");
}
}
my_ssp.addEventListener(SSPImageEvent.IMAGE_ROLLOUT, onImageEvent);
my_ssp.addEventListener(SSPImageEvent.IMAGE_ROLLOVER, onImageEvent);
Dispatched when slideshow content is rolled-over by the viewer's mouse.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| num | The numerical order of the content. |
| zone | The area within the content area that the mouse hovered over. Returns "previous", "action" or "next". |
"previous" is dispatched when the mouse hovers over the left side of the content area, and "next" when the mouse hovers over the right. Both of these are only broadcasted when contentAreaInteractivity is set to "Action Area and Navigation". "action" is dispatched when the mouse hovers over the center area, and is broadcasted in both "Action Area and Navigation" and "Action Area Only" settings for contentAreaInteractivity.
The following example traces which area the mouse is hovering over.
import net.slideshowpro.slideshowpro.*;
function onZoneChange(event:SSPImageEvent) {
if (event.type=="imageZone") {
trace(event.zone + " is hovered");
}
}
my_ssp.addEventListener(SSPImageEvent.IMAGE_ZONE, onZoneChange);
Dispatched when the next image button in the navigation is disabled, enabled, and/or clicked.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| mode | A string containing the event the occurred. Values include "enabled", "disabled" or "click". |
The following traces when a button is enabled and/or disabled.
import net.slideshowpro.slideshowpro.*;
function onNavButtonEvent(event:SSPNavButtonEvent) {
if (event.mode=="disabled") {
trace(event.type + " button was disabled");
}
if (event.mode=="enabled") {
trace(event.type + " button was enabled");
}
}
my_ssp.addEventListener(SSPNavButtonEvent.NEXT_IMAGE, onNavButtonEvent);
my_ssp.addEventListener(SSPNavButtonEvent.PREV_IMAGE, onNavButtonEvent);
my_ssp.addEventListener(SSPNavButtonEvent.NEXT_IMAGE_GROUP, onNavButtonEvent);
my_ssp.addEventListener(SSPNavButtonEvent.PREV_IMAGE_GROUP, onNavButtonEvent);
Dispatched when the next image group button in the navigation is disabled, enabled, and/or clicked.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| mode | A string containing the event the occurred. Values include "enabled", "disabled" or "click". |
The following traces when a button is enabled and/or disabled.
import net.slideshowpro.slideshowpro.*;
function onNavButtonEvent(event:SSPNavButtonEvent) {
if (event.mode=="disabled") {
trace(event.type + " button was disabled");
}
if (event.mode=="enabled") {
trace(event.type + " button was enabled");
}
}
my_ssp.addEventListener(SSPNavButtonEvent.NEXT_IMAGE, onNavButtonEvent);
my_ssp.addEventListener(SSPNavButtonEvent.PREV_IMAGE, onNavButtonEvent);
my_ssp.addEventListener(SSPNavButtonEvent.NEXT_IMAGE_GROUP, onNavButtonEvent);
my_ssp.addEventListener(SSPNavButtonEvent.PREV_IMAGE_GROUP, onNavButtonEvent);
Dispatched immediately after a gallery screen greater than the one currently being viewed is requested.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
The following traces to the Output panel which screen has been requested:
import net.slideshowpro.slideshowpro.*;
function onGalleryScreenEvent(event:SSPGalleryScreenEvent) {
trace(event.type);
}
}
my_ssp.addEventListener(SSPGalleryScreenEvent.NEXT_SCREEN, onGalleryScreenEvent);
my_ssp.addEventListener(SSPGalleryScreenEvent.PREV_SCREEN, onGalleryScreenEvent);
Dispatched when NetStream status updates occur when using video. The status string that is passed as part of the event data is the same data broadcasted as part of the info property of the NetStatusEvent.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| status | String containing the video metadata. |
The following example traces any status updates from NetStream when a video is used.
import net.slideshowpro.slideshowpro.*;
function onNetStreamStatus(event:SSPNetStreamEvent) {
trace(event.status);
}
my_ssp.addEventListener(SSPNetStreamEvent.NET_STREAM_STATUS, onNetStreamStatus);
Dispatched when a gallery loads and returns a true/false value. True if the slideshow is being accessed with a permalink URL, false if accessed normally.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| data | Boolean for whether a gallery was accessed via a permalink URL. |
The following example traces the permalink state:
import net.slideshowpro.slideshowpro.*;
function onSlideShowData(event:SSPDataEvent) {
if (event.type=="permalink") {
trace(event.data);
}
}
my_ssp.addEventListener(SSPDataEvent.PERMALINK, onSlideShowData);
Dispatched when preloading has ended.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
Dispatched when a load request has been made.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| data | The object that's dispatching the load request. |
Dispatched whenever the amount of preloaded bytes changes.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| data | A number reflecting the percentage of data loaded thus far. |
The following traces the percentage amount of data loaded whenever slideshow content is requested:
import net.slideshowpro.slideshowpro.*;
function onPreloadProgress(event:SSPPreloadEvent) {
trace("percentage loaded: " + event.data);
}
my_ssp.addEventListener(SSPPreloadEvent.PRELOAD_PROGRESS, onPreloadProgress);
Dispatched when the previous image button in the navigation is disabled, enabled, and/or clicked.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| mode | A string containing the event the occurred. Values include "enabled", "disabled" or "click". |
The following traces when a button is enabled and/or disabled.
import net.slideshowpro.slideshowpro.*;
function onNavButtonEvent(event:SSPNavButtonEvent) {
if (event.mode=="disabled") {
trace(event.type + " button was disabled");
}
if (event.mode=="enabled") {
trace(event.type + " button was enabled");
}
}
my_ssp.addEventListener(SSPNavButtonEvent.NEXT_IMAGE, onNavButtonEvent);
my_ssp.addEventListener(SSPNavButtonEvent.PREV_IMAGE, onNavButtonEvent);
my_ssp.addEventListener(SSPNavButtonEvent.NEXT_IMAGE_GROUP, onNavButtonEvent);
my_ssp.addEventListener(SSPNavButtonEvent.PREV_IMAGE_GROUP, onNavButtonEvent);
Dispatched when the previous image group button in the navigation is disabled, enabled, and/or clicked.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| mode | A string containing the event the occurred. Values include "enabled", "disabled" or "click". |
The following traces when a button is enabled and/or disabled.
import net.slideshowpro.slideshowpro.*;
function onNavButtonEvent(event:SSPNavButtonEvent) {
if (event.mode=="disabled") {
trace(event.type + " button was disabled");
}
if (event.mode=="enabled") {
trace(event.type + " button was enabled");
}
}
my_ssp.addEventListener(SSPNavButtonEvent.NEXT_IMAGE, onNavButtonEvent);
my_ssp.addEventListener(SSPNavButtonEvent.PREV_IMAGE, onNavButtonEvent);
my_ssp.addEventListener(SSPNavButtonEvent.NEXT_IMAGE_GROUP, onNavButtonEvent);
my_ssp.addEventListener(SSPNavButtonEvent.PREV_IMAGE_GROUP, onNavButtonEvent);
Dispatched immediately after a gallery screen before than the one currently being viewed is requested.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
The following traces to the Output panel which screen has been requested:
import net.slideshowpro.slideshowpro.*;
function onGalleryScreenEvent(event:SSPGalleryScreenEvent) {
trace(event.type);
}
}
my_ssp.addEventListener(SSPGalleryScreenEvent.NEXT_SCREEN, onGalleryScreenEvent);
my_ssp.addEventListener(SSPGalleryScreenEvent.PREV_SCREEN, onGalleryScreenEvent);
Dispatched when a transition style effect finishes manipulating slideshow content.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| direction | The direction of the transition effect. |
| length | The duration of the transition effect. |
| pause | The numerical length of time (in seconds) transitions pause before loading the next piece of content. |
| style | The style of transition being applied. |
Dispatched when a transition style effect has begun manipulating slideshow content.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| direction | The direction of the transition effect. |
| length | The duration of the transition effect. |
| pause | The numerical length of time (in seconds) transitions pause before loading the next piece of content. |
| style | The style of transition being applied. |
Dispatched when a transition pause has ended.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| direction | The direction of the transition effect. |
| length | The duration of the transition effect. |
| pause | The numerical length of time (in seconds) transitions pause before loading the next piece of content. |
| style | The style of transition being applied. |
Dispatched when a transition pause has begun.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| direction | The direction of the transition effect. |
| length | The duration of the transition effect. |
| pause | The numerical length of time (in seconds) transitions pause before loading the next piece of content. |
| style | The style of transition being applied. |
Dispatched when an embedded cue point is reached while playing a video file.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| data | Object containing the cue point data. |
The data event object has the following properties:
| Property | Description |
|---|---|
| name | The name given to the cue point when it was embedded in the video file. |
| parameters | An associative array of name/value pair strings specified for this cue point. Any valid string can be used for the parameter name or value. |
| time | The time in seconds at which the cue point occurred in the video file during playback. |
| type | The type of cue point that was reached, either navigation or event. |
The following example traces the cue point event object data:
import net.slideshowpro.slideshowpro.*;
function onVideoCuePoint(event:SSPVideoEvent) {
for (var prop in event.data) {
trace (prop + " = " + event.data[prop]);
}
}
my_ssp.addEventListener(SSPVideoEvent.VIDEO_CUE_POINT, onVideoCuePoint);
Dispatched when a video ends playback.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
The following traces a confirmation message to the Output panel when the video completes:
import net.slideshowpro.slideshowpro.*;
function onVideoEvent(event:SSPVideoEvent) {
if (event.type=="videoEnd") {
trace("video has ended");
}
}
my_ssp.addEventListener(SSPVideoEvent.VIDEO_END, onVideoEvent);
Dispatched when and if video metadata is available.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| data | Object containing the video metadata. |
The following example displays all the metadata that's embedded in a video:
import net.slideshowpro.slideshowpro.*;
function onVideoEvent(event:SSPVideoEvent) {
if (event.type=="videoMetadata") {
for (var prop in event.data) {
trace (prop + " = " + event.data[prop]);
}
}
}
my_ssp.addEventListener(SSPVideoEvent.VIDEO_METADATA, onVideoEvent);
Dispatched when a video has paused playback.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
Dispatched when a video playback request is made.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
Dispatched when a video preview image request is made.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| hasImg | A boolean indicating whether the requested video has a preview graphic associated with it. Returns "true" or "false". |
Dispatched when a video preview image is removed.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
Dispatched when video playback resumes after being paused.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
Dispatched when video playback begins.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
The following traces confirmation of video playback beginning:
import net.slideshowpro.slideshowpro.*;
function onVideoEvent(event:SSPVideoEvent) {
if (event.type=="videoStart") {
trace("video has started");
}
}
my_ssp.addEventListener(SSPVideoEvent.VIDEO_START, onVideoEvent);
Dispatched when XMP metadata embedded in a video is found.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| data | Object containing the video metadata. |
The following example displays all the XMP metadata found:
import net.slideshowpro.slideshowpro.*;
function onXMPEvent(event:SSPVideoEvent) {
for (var prop in event.data) {
trace (prop + " = " + event.data[prop]);
}
}
my_ssp.addEventListener(SSPVideoEvent.VIDEO_XMP_DATA, onXMPEvent);
Dispatched immediately after data is loaded.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| data | An object containing the XML file markup. |
The following traces to the Output panel the XML data that was loaded:
import net.slideshowpro.slideshowpro.*;
function onSlideShowData(event:SSPDataEvent) {
trace(event.data);
}
my_ssp.addEventListener(SSPDataEvent.XML_DATA, onSlideShowData);
: