# CuePoint function problem

**URL:** https://forum.kirupa.com/t/cuepoint-function-problem/226894
**Category:** flash
**Created:** [May 24, 2007, 10:25pm UTC](https://forum.kirupa.com/t/cuepoint-function-problem/226894 "2007-05-24T22:25:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![friggingmick](https://avatars.discourse-cdn.com/v4/letter/f/58956e/32.png) [@friggingmick](https://forum.kirupa.com/u/friggingmick)
#### Post date: [May 24, 2007, 10:25pm UTC](https://forum.kirupa.com/t/cuepoint-function-problem/226894/1 "2007-05-24T22:25:34Z")

</div>

I’m using Flash 8 (in case you need know what version I’m using). There’s three flvs I have assigned a cuepoint, “complete”. The goal is to make a graphic visible when “complete” cuepoint is detected, but this function seem doesn’t work, any feedback on function?:

```auto

var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns :NetStream = new NetStream(nc);
myVid.attachVideo (ns);

s9thb.onPress = function() {
	ns.play ("flv/S9.flv");
	screenout._visible = false;

}

s10thb.onPress = function() {
	ns.play ("flv/S10.flv");
	screenout._visible = false;
}

s11thb.onPress = function() {
	ns.play ("flv/S11.flv");
	screenout._visible = false;
}

listenerObject = new Object();
listenerObject.cuePoint = function(eventObject){
   screenout._visible = true;
}

ns.addEventListener("complete", listenerObject)

```

Friggin’ Mick
