# Gallery onclipEvent not working properly

**URL:** <https://forum.kirupa.com/t/gallery-onclipevent-not-working-properly/241461>\
**Category:** Uncategorized\
**Created:** [October 14, 2007, 12:49pm UTC](https://forum.kirupa.com/t/gallery-onclipevent-not-working-properly/241461 "2007-10-14T12:49:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inflicted](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@Inflicted](https://forum.kirupa.com/u/Inflicted)\
**Post date:** [October 14, 2007, 12:49pm UTC](https://forum.kirupa.com/t/gallery-onclipevent-not-working-properly/241461/1 "2007-10-14T12:49:49Z")

</div>

It’s been a long while since I’ve worked with Flash,  
so bear with me…

I have this altered gallery ([from the kirupa photogallery](http://www.kirupa.com/developer/mx/photogallery.htm))that works onClipEvent.  
I think it was made with MX2004, but when I test it online,  
it’s not working properly:  
[http://www.maremonti.nl/frames/test.html](http://www.maremonti.nl/frames/test.html)

Could this have to do with the code?:

```auto
onClipEvent (load) {
	start = getTimer();
}
onClipEvent (enterFrame) {
	nu = getTimer();
	tijd = (now-start)/1000;

	if (tijd>=4) {
		start = now;
		_root.changePhoto(1);
	}
}

```

Hope someone can help…thanks
