TimelinePresentation

Kind of class: public class
Package:
Inherits from:
  • MovieClip
Known subclasses:
Version: 27 Mar 2010
Author: John Polacek, john@johnpolacek.com
Classpath: com.johnpolacek.presentation.TimelinePresentation
File last modified: Friday, 12 November 2010, 15:34:14
TimelinePresentation is used to create linear presentations animated on the timeline. It replaces normal timeline behavior with custom behaviors. To create a timeline presentation, open a new flash doc and have the document class extend TimelinePresentation Animate the presentation via the timeline. In the actions layer, instead of stop(); keyframes, use stopTimeline(); - this is so the timeline gets stopped when playing in reverse. Use the pauseTimeline(seconds:Number) method to pause the timeline. For long presentations, separate different chapters into scenes, and use the navigation controls to skip between chapters. Presentations are meant to run locally, so streaming video is not recommended. Embed videos so the presentation is entirely contained in a projector file. Navigation:
  • RIGHT ARROW: play forward
  • LEFT ARROW: play in reverse
  • SPACE BAR: toggle play/pause
  • SHIFT + RIGHT ARROW: jump to next scene, pause
  • SHIFT + LEFT ARROW: jump to start of scene or previous scene, pause

Summary

Constructor
Instance properties
  • timelineControlsEnabled : Boolean
    • Used to disable timeline navigation, for example to disable until a video finishes playback
  • isPlayingForward : Boolean
    • Used to keep track of the playback direction on the main timeline
Instance methods

Constructor

TimelinePresentation

function TimelinePresentation()

Instance properties

isPlayingForward

isPlayingForward:Boolean = true(read,write)

Used to keep track of the playback direction on the main timeline

timelineControlsEnabled

timelineControlsEnabled:Boolean = true(read,write)

Used to disable timeline navigation, for example to disable until a video finishes playback

Instance methods

forcePlayTimeline

function forcePlayTimeline() : void

Turns off controls and forces timeline to play forward until it gets stop(); command Useful for streaming audio, which won't play if tweening via a timer

gotoAndPlayTimeline

function gotoAndPlayTimeline(frameNumber:int) : void

Go to and play the timeline from a given frame number

Parameters
frameNumber:Frame number to navigate to in the timeline

gotoScene

function gotoScene(sceneNumber:int) : void

Stops timeline

pauseTimeline

function pauseTimeline(seconds:Number = 1) : void

Pauses timeline

Parameters
seconds:number of seconds the timeline is paused

playForward

function playForward() : void

Plays timeline forward

playReverse

function playReverse() : void

Plays timeline in reverse

stopTimeline

function stopTimeline() : void

Stops timeline