# Statement must appear within on/onClipEvent handler

**URL:** https://forum.kirupa.com/t/statement-must-appear-within-on-onclipevent-handler/165347
**Category:** flash
**Created:** [October 10, 2005, 3:17pm UTC](https://forum.kirupa.com/t/statement-must-appear-within-on-onclipevent-handler/165347 "2005-10-10T15:17:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ditti](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@ditti](https://forum.kirupa.com/u/ditti)
#### Post date: [October 10, 2005, 3:17pm UTC](https://forum.kirupa.com/t/statement-must-appear-within-on-onclipevent-handler/165347/1 "2005-10-10T15:17:46Z")

</div>

Hi!  
I don´t know how to handle this:

```auto
on (press) {
  var box = _root.createEmptyMovieClip("holder", _root.getNextHighestDepth());
  box._x = 150;
  box._y = 100;
  preLoad(box, "loaded.swf"); };

```

> Statement must appear within on/onClipEvent handler

it´s the line :  
preLoad(box, “loaded.swf”);}
