# \[AS 2.0\] Referencing cue points

**URL:** <https://forum.kirupa.com/t/as-2-0-referencing-cue-points/243723>\
**Category:** Uncategorized\
**Created:** [November 9, 2007, 10:33pm UTC](https://forum.kirupa.com/t/as-2-0-referencing-cue-points/243723 "2007-11-09T22:33:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcthfg](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@mcthfg](https://forum.kirupa.com/u/mcthfg)\
**Post date:** [November 9, 2007, 10:33pm UTC](https://forum.kirupa.com/t/as-2-0-referencing-cue-points/243723/1 "2007-11-09T22:33:20Z")

</div>

Hey all -

I’m trying to reference a cue point from one swf that contains another swf that contains the cue point.

Diagram -

cue point --\> flv --\> 1.swf --\> 2.swf

I’ve got a listener that works fine when in 1.swf, but I’m not sure how to reference it from 2.swf

Here’s the code that works fine in 1.swf -

//Cue Point  
var listenerObject:Object = new Object();  
listenerObject.cuePoint = function(eventObject:Object):Void {  
trace("Elapsed time in seconds: " + myVideo.playheadTime);  
trace("Cue point name is: " + eventObject.info.name);  
trace("Cue point type is: " + eventObject.info.type);  
}  
myVideo.addEventListener(“cuePoint”,listenerObject);

Thanks for any help!
