# Multiple Cue Points in FLV = Multiple Listeners?

**URL:** <https://forum.kirupa.com/t/multiple-cue-points-in-flv-multiple-listeners/209943>\
**Category:** flash\
**Created:** [December 13, 2006, 3:02pm UTC](https://forum.kirupa.com/t/multiple-cue-points-in-flv-multiple-listeners/209943 "2006-12-13T15:02:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mw2006](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@mw2006](https://forum.kirupa.com/u/mw2006)\
**Post date:** [December 13, 2006, 3:02pm UTC](https://forum.kirupa.com/t/multiple-cue-points-in-flv-multiple-listeners/209943/1 "2006-12-13T15:02:19Z")

</div>

Hi all – quick (simple) question.  
I’ve got an flv movie that displays within my flash document. It has multiple cue points that seem to work ok. I’d like to add one towards the end that fades out the movie, do I need another listener object for this? In other words: Is it necessary to attach multiple listener objects for completely seperate cue points? I’ve attached the code I use to fade out my movie clip here:

```auto

var vid:Object = new Object();
vid.cuePoint = function(cues){
this.onEnterFrame = fade;
}
vid.addEventListener("cuePoint",vid);

function fade();
this._alpha -= 5;
if(this._alpha < 1){
delete this.onEnterFrame;
}
}

```
