# Simple photogallery question

**URL:** https://forum.kirupa.com/t/simple-photogallery-question/194233
**Category:** flash
**Created:** [July 21, 2006, 2:43pm UTC](https://forum.kirupa.com/t/simple-photogallery-question/194233 "2006-07-21T14:43:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![xfacex2g](https://avatars.discourse-cdn.com/v4/letter/x/58956e/32.png) [@xfacex2g](https://forum.kirupa.com/u/xfacex2g)
#### Post date: [July 21, 2006, 2:43pm UTC](https://forum.kirupa.com/t/simple-photogallery-question/194233/1 "2006-07-21T14:43:48Z")

</div>

Two things; First I created a photogal that buttons load pics. Not using the loader component, they are just movie clips.

So I prescribe the action:  
on (release) {  
gotoAndStop(2);  
}

For all four buttons its the same w/ the appropriate frame.

Why do I get this error?

\*\*\*\*must appear within on/onClipEvent handler  
stop();

Total ActionScript Errors: 2 Reported Errors: 2\*

Second question; So I have four buttons with four pics on different frames. When the movie is first played there is nothing there you have to click a button. How do i get one of the buttons to be the default when the movie is loaded? I’m sure there is a logical, easy explanation for this, Im just a huge newb. Thanks in advance!
