# Function error \[AS 2\]

**URL:** <https://forum.kirupa.com/t/function-error-as-2/151370>\
**Category:** flash\
**Created:** [June 15, 2005, 2:17am UTC](https://forum.kirupa.com/t/function-error-as-2/151370 "2005-06-15T02:17:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [June 15, 2005, 2:17am UTC](https://forum.kirupa.com/t/function-error-as-2/151370/1 "2005-06-15T02:17:05Z")

</div>

I wrote a function on the main timeline that contains a onClipEvent(load) command. A bunch of movie clip symbols call up this function. When I test run, Flash says that onClipEvent(load) may only be used in a move clip. The code is not directly on a movie clip, but it is indirectly on one!
