# Photo Gallery Action Script Errors-Help?

**URL:** <https://forum.kirupa.com/t/photo-gallery-action-script-errors-help/33233>\
**Category:** flash\
**Created:** [October 16, 2003, 7:00pm UTC](https://forum.kirupa.com/t/photo-gallery-action-script-errors-help/33233 "2003-10-16T19:00:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kRaZie\_C](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@kRaZie\_C](https://forum.kirupa.com/u/kRaZie_C)\
**Post date:** [October 16, 2003, 7:00pm UTC](https://forum.kirupa.com/t/photo-gallery-action-script-errors-help/33233/1 "2003-10-16T19:00:04Z")

</div>

Can someone please help me? I finally got sbeener’s gallery working on my site but ran into a problem after I tried to test my scene.

Action Script Output Errors:  
Scene=FriendsGallery, Layer=Gallery, Frame=1: Line 10: Statement must appear within on/onClipEvent handler  
this.pathToPics = “thumbnails/”;

Scene=FriendsGallery, Layer=Gallery, Frame=1: Line 12: Statement must appear within on/onClipEvent handler  
this.pArray = [“Brad\_01.jpg”, “Tim\_01.jpg”, “kristianne & donald\_01.jpg”, “sandra\_01.jpg”, “selena\_01.jpg”];

Scene=FriendsGallery, Layer=Gallery, Frame=1: Line 13: Statement must appear within on/onClipEvent handler  
this.fadeSpeed = 20;

Scene=FriendsGallery, Layer=Gallery, Frame=1: Line 14: Statement must appear within on/onClipEvent handler  
this.pIndex = 0;

Scene=FriendsGallery, Layer=Gallery, Frame=1: Line 18: Statement must appear within on/onClipEvent handler  
loadMovie(this.pathToPics+this.pArray[0], \_root.photo);

Scene=FriendsGallery, Layer=Gallery, Frame=1: Line 19: Statement must appear within on/onClipEvent handler  
MovieClip.prototype.changePhoto = function(d) {

Scene=FriendsGallery, Layer=Gallery, Frame=1: Line 27: Statement must appear within on/onClipEvent handler  
MovieClip.prototype.fadeOut = function() {

Scene=FriendsGallery, Layer=Gallery, Frame=1: Line 34: Statement must appear within on/onClipEvent handler  
MovieClip.prototype.loadPhoto = function() {

Scene=FriendsGallery, Layer=Gallery, Frame=1: Line 42: Statement must appear within on/onClipEvent handler  
MovieClip.prototype.loadMeter = function() {

Scene=FriendsGallery, Layer=Gallery, Frame=1: Line 52: Statement must appear within on/onClipEvent handler  
MovieClip.prototype.fadeIn = function() {

Scene=FriendsGallery, Layer=Gallery, Frame=1: Line 62: Statement must appear within on/onClipEvent handler  
this.onKeyDown = function() {

Scene=FriendsGallery, Layer=Gallery, Frame=1: Line 69: Statement must appear within on/onClipEvent handler  
Key.addListener(this);

Any suggestions? Thx in advance!
