# Quick Question (Noob)

**URL:** https://forum.kirupa.com/t/quick-question-noob/92714
**Category:** Uncategorized
**Created:** [October 21, 2003, 12:02am UTC](https://forum.kirupa.com/t/quick-question-noob/92714 "2003-10-21T00:02:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![flash2004](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@flash2004](https://forum.kirupa.com/u/flash2004)
#### Post date: [October 21, 2003, 12:02am UTC](https://forum.kirupa.com/t/quick-question-noob/92714/1 "2003-10-21T00:02:05Z")

</div>

Im trying to get my movie to go to frame 2 when this movie clip is rolled over.

the as i have so far is

on (rollOver) {  
gotoAndPlay(2);  
}

When i preview, i get the following error: **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: Statement must appear within on/onClipEvent handler  
gotoAndPlay(1);

Total ActionScript Errors: 1 Reported Errors: 1

Any ideas?
