Adobe Captivate Classic SWF events

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

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

CPVariableValueChangedEvent

Users change the value of a variable in Adobe Captivate Classic.

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 Classic 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; 
     } 
}

احصل على مساعدة بشكل أسرع وأسهل

مستخدم جديد؟