Main Page | Packages | Class Tree | Index | Help

mx.controls.streamingmedia.behaviors

class NamedFrameCuePointListener

Object
  |
  +--mx.controls.streamingmedia.behaviors.NamedFrameCuePointListener


class NamedFrameCuePointListener
extends Object

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.


Author:
Andrew Guldman


Fields inherited from class Object

__proto__, constructor, prototype

Constructor

public
NamedFrameCuePointListener ( aTarget: MovieClip, shouldStop: Boolean)
Constructor.

Method Summary

public
handleEvent ( ev: Object ): Void
Listen for cuePoint events and move the playhead to the frame with the same name as the cuePoint.

public static
initializeListener ( holder: ICuePointHolder, aTarget: MovieClip, shouldStop: Boolean )
Create a listener on the specified cue point holder.

Methods inherited from class Object

addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toLocaleString, toString, unwatch, valueOf, watch



Constructor Documentation

NamedFrameCuePointListener

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

Method Documentation

handleEvent

public function handleEvent(ev: Object): Void
Listen for cuePoint events and move the playhead to the frame with the same name as the cuePoint.

initializeListener

public static function initializeListener(holder: ICuePointHolder,
 aTarget: MovieClip,
 shouldStop: Boolean)
Create a listener on the specified cue point holder.

Parameters:
holder
The holder of cue points
aTarget
targetClip The intended target of the listener
shouldStop
True to generate a gotoAndStop; false for gotoAndPlay

The documentation was generated from the following file:


Copyright © 1997-2005 Macromedia, Inc. All rights reserved. Generated with AS2Doc