The following table lists the SWF events that are signaled by Adobe Captivate:

Event

Signaled when

CPMovieStartEvent

The movie starts playing

CPMovieStopEvent

After the movie finishes playing

CPMoviePauseEvent

The movie is paused

CPMovieResumeEvent

The movie resumes playing

CPSlideEnterEvent

While entering a slide

CPSlideExitEvent

While exiting a slide

CPQuestionSubmitEvent

A question is submitted and is evaluated.

CPAnswerSubmitEvent

An answer is submitted for the interactive object.

CPEndPlayerScrubbingEvent

Users stop scrubbing the playbar.

CPHideRolloverEvent

Users roll their mouse over a rollover object.

CPInteractiveItemSubmitEvent

Users click an interactive item.

CPQuestionEventData

Users submit an answer to a question.

CPQuestionSkipEvent

Users skip a question.

CPQuestionSubmitEvent

Users submit an answer to a question.

CPShowRolloverEvent

Users stop rolling the mouse over a rollover object.

CPStartPlaybarScrubbingEvent

Users start scrubbing the playbar.

CPVariableCreatedEvent

Users create a variable in Adobe Captivate.

CPVariableValueChangedEvent

Users change the value of a variable in Adobe Captivate.

Subscribe to SWF events

Use the function AddEventListener to subscribe to SWF events.

Example

eventHandle.addEventListener(CPMovieStartEvent.CPMOVIESTARTEVENT,CPEventHandler);

where

eventHandle = movieHandle.getMovieProps().eventDispatcher;

This example illustrates how to print a message when Adobe Captivate movie starts playing.

function CPEventHandler(e:Event):void 
{ 
     switch(e.type) 
     { 
         case CPMovieStartEvent.CPMOVIESTARTEVENT: 
                                                var startEvt : CPMovieStartEvent; 
                                                startEvt = e as CPMovieStartEvent; 
                                                trace("movie started playing"); 
                                                break; 
     } 
}

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy