# "Error #1006: value is not a function" with mysterious cause

**URL:** https://forum.kirupa.com/t/error-1006-value-is-not-a-function-with-mysterious-cause/290791
**Category:** flash
**Created:** [June 19, 2009, 4:52pm UTC](https://forum.kirupa.com/t/error-1006-value-is-not-a-function-with-mysterious-cause/290791 "2009-06-19T16:52:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BoppreH](https://avatars.discourse-cdn.com/v4/letter/b/dbc845/32.png) [@BoppreH](https://forum.kirupa.com/u/BoppreH)
#### Post date: [June 19, 2009, 4:52pm UTC](https://forum.kirupa.com/t/error-1006-value-is-not-a-function-with-mysterious-cause/290791/1 "2009-06-19T16:52:58Z")

</div>

This is the line throwing the error:

```auto
trace((root as MovieClip), (root as MovieClip).manager, (root as MovieClip).manager.gotoAndFade)
(root as MovieClip).manager.gotoAndFade()

```

And this is the output:

```auto
[object MainTimeline] [object Manager] function Function() {}
TypeError: Error #1006: value is not a function.

```

How can that be possible? Or better yet, how do I fix this?

I’ve read something about “:void” return types causing type errors, but I already removed that. I’ve no clue on what to do to troubleshoot this error. I don’t even know what pieces of code to post.

Ah, and the rest of the code is full with “gotoAndFade” calls in the very same way it was called in this line.
