CuePoints class

org.thesourcecode.utils.CuePoints

 

Overview

Author

Hasan Otuome [hasan.otuome.com]

Version

1.0

Usage

import org.thesourcecode.utils.CuePoints;

var arr:Array = new Array(); arr.push({cueName:"Cue Point 1", cueText:"Text to display"}); arr.push({cueName:"Cue Point 2", cueText:"Text to display"});
var co:Object = new Object(); co.video = video; co.cues = arr; co.textbox = captions.clip.txt; co.animation = function(){ captions.gotoAndPlay(2); }
var cp:CuePoints = new CuePoints(co);

Description

Simplifies working with cue points in Flash.

Uses a cue point object (co) to hold the required properties. video is the instance name given to your video object. cues is a reference to the array used to hold your cue point data. textbox is the path to the dynamic TextField to be used for your captions. animation is the method you want to execute to animate your captions.