NamedFrameCuePointListener

Kind of class:class
Inherits from:none
Author:Andrew Guldman
Classpath:mx.controls.streamingmedia.behaviors.NamedFrameCuePointListener
File last modified:Tuesday, 18 December 2007, 15:44:38
This class is a listener for cuePoint events that will move the playhead
of the specified clip to a named frame with the same name as the cuePoint.

Summary


Constructor
Instance properties
Class methods
Instance methods
  • handleEvent (ev:Object) : Void
    • Listen for cuePoint events and move the playhead to the frame

Constructor

NamedFrameCuePointListener

function NamedFrameCuePointListener (
aTarget:MovieClip, shouldStop:Boolean)

Constructor.
Parameters:
aTarget :
The clip which has the named frames corresponding to the
cuePoint names.
shouldStop:
If true, then gotoAndStop will be called; otherwise
gotoAndPlay will.

Instance properties

_stop

private _stop:Boolean
(read)

_targetClip

private _targetClip:MovieClip
(read)

Class methods

initializeListener

static function initializeListener (
holder:ICuePointHolder, aTarget:MovieClip, shouldStop:Boolean)

Create a listener on the specified cue point holder.
Parameters:
The :
holder of cue points
targetClip:
The intended target of the listener
shouldStop:
True to generate a gotoAndStop; false for gotoAndPlay

Instance methods

handleEvent

function handleEvent (
ev:Object) : Void

Listen for cuePoint events and move the playhead to the frame
with the same name as the cuePoint.