ispring.as2player.IPresentationPlaybackController Interface

The IPresentationPlaybackController interface extends the standard
flash.events.IEventDispatcher
Interface and provides the following properties, methods and events for presentation playback and
navigation control.

Table 1. Properties

Property

Type

Description

playing

Boolean

Indicates whether the presentation is playing or not (read only)

currentSlideDuration

Number

A duration of the currently playing slide (read only)

currentSlideIndex

Number

Current slide index (read only)

currentSlidePlaybackPosition

Number

Returns playback position within current slide.
Note: playback position is a number between 0 and
1

currentStepIndex

Number

Returns current animation step index

animationStepPause

Number

Sets a pause between animation
steps. If an undefined value is
passed as pause value, animation steps will not be
played automatically.

Switches to the next presentation slide and
starts its playback.
Note: if the autoStart parameter was set to
false, slide playback would not be started after switching

gotoPreviousSlide([autoStart:Boolean = true]):Void

Switches to the previous presentation slide and starts its playback.
Note: if the autoStart parameter was set to
false, slide playback would not be started after switching

gotoLastViewedSlide([autoStart:Boolean = true]):Void

Switches to the previously
viewed slide and starts its playback.
Note: if the autoStart parameter was set to
false, slide playback would not be started after switching

gotoSlide(slideIndex:Number, [autoStart:Boolean = true]):Void

Switches to the given slide of the presentation and starts its
playback
Notes: Slide index is zero-based.
If the autoStart parameter was set to false, slide playback would
not be started after switching

pauseCurrentSlideAt(position:Number):Void

Suspends currently playing slide at the given position
Note: position is a number in between 0 and 1

playCurrentSlideFrom(position:Number):Void

Restarts current slide from the given position.
Note: position is a number between 0 and 1

seek(position:Number):Void

Seeks the current slide to the given position. After this operation
slide playback gets suspended until the endSeek()
method or other playback control method is called
Note: position is a number between
0 and 1

endSeek([resumePlayback:Boolean = undefined]):Void

Exits from seeking mode and restores playback.
Note: the resumePlayback parameter allows
to start or pause slide after seeking explicitly

gotoNextStep():Void

Plays current slide from the beginning of the next
animation step.
Note: being called at the end of the
slide this method plays presentation from the beginning of the
next slide

gotoPreviousStep():Void

Moves slide playback one step back. This method
suspends slide playback at the end of the previous
animation step.
Note: being called on the start slide
step this method causes playback switching to the end
of the previous slide

playFromStep(stepIndex:Number):Void

Plays current slide from the beginning of the specified animation
step

pauseAtStepStart(stepIndex:Number):Void

Suspends current slide at the beginning of the specified animation
step

Switches to the given slide within visible slides and starts its
playback.
Notes: Slide index is zero-based.
If the autoStart parameter was set to false, slide playback would
not be started after switching.

gotoFirstSlide([autoStart:Boolean = true]):Void

Switches to the first presentation slide and starts its playback.
Notes: Slide index is zero-based.
If the autoStart parameter was set to false, slide playback would
not be started after switching.

gotoLastSlide([autoStart:Boolean = true]):Void

Switches to the last presentation slide and starts its playback.
Notes: Slide index is zero-based.
If the autoStart parameter was set to false, slide playback would
not be started after switching.