# Is returned findNearestCuePoint object REALLY a copy?

**URL:** <https://forum.kirupa.com/t/is-returned-findnearestcuepoint-object-really-a-copy/243572>\
**Category:** flash\
**Created:** [November 8, 2007, 2:52pm UTC](https://forum.kirupa.com/t/is-returned-findnearestcuepoint-object-really-a-copy/243572 "2007-11-08T14:52:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![demerit](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@demerit](https://forum.kirupa.com/u/demerit)\
**Post date:** [November 8, 2007, 2:52pm UTC](https://forum.kirupa.com/t/is-returned-findnearestcuepoint-object-really-a-copy/243572/1 "2007-11-08T14:52:10Z")

</div>

After a cuepoint event, the following will return the number in the _whichchange_ parameter

```
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000FF]trace[/COLOR][COLOR=#000000]([/COLOR]oEvent.[COLOR=#000080]info[/COLOR].[COLOR=#000080]parameters[/COLOR].[COLOR=#000080]whichchange[/COLOR][COLOR=#000000])[/COLOR];

```

[/LEFT]  
[/FONT]

However, after a seek event, the following returns _undefined_:

```
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#000000] **var** [/COLOR] rtn_obj:[COLOR=#0000FF]Object[/COLOR] = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000FF]Object[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];

```

rtn\_obj = cfp.[COLOR=#000080]findNearestCuePoint[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000FF]trace[/COLOR]COLOR=#000000[/COLOR];  
[/LEFT]  
[/FONT]

In the LiveDocs, it states:

> **Returns**

An object that is a [COLOR=Magenta]copy[/COLOR] of the found cue point object with the following additional properties:

array The array of cue points searched. Treat this array as read-only as adding, removing or editing objects within it can cause cue points to malfunction.

index The index into the array for the returned cue point.

Returns null if no match was found.  
If I take this at face value, a copy is exactly that… a copy.  
So why doesn’t this copy of the cuepoint object have my parameters in it?

Am I doing something wrong?  
Have I lost my mind?

Or is LiveDocs chocked full of LIES!?!? 😉
