# \[AS2\] problem: using same setup for all images in gallery -3 wont work

**URL:** <https://forum.kirupa.com/t/as2-problem-using-same-setup-for-all-images-in-gallery-3-wont-work/263204>\
**Category:** flash\
**Created:** [June 13, 2008, 10:19am UTC](https://forum.kirupa.com/t/as2-problem-using-same-setup-for-all-images-in-gallery-3-wont-work/263204 "2008-06-13T10:19:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhf80](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@jhf80](https://forum.kirupa.com/u/jhf80)\
**Post date:** [June 13, 2008, 10:19am UTC](https://forum.kirupa.com/t/as2-problem-using-same-setup-for-all-images-in-gallery-3-wont-work/263204/1 "2008-06-13T10:19:10Z")

</div>

Im having a strange problem with a image gallery i building… im using framelabels and this script on the buttons:

on (release) {  
gotoAndStop(“labelname”);  
}

strange thing is, this has worked just fine on 13 pictures but the final 3 pictures won’t work… klikking on the buttons doesn’t go to the picture i want… just a blank page… i bouble and tripple checked the instansenames and framelabels… im really confused…

Any ideas? 👁

---

<div class="post-metadata">

**Author:** ![jhf80](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@jhf80](https://forum.kirupa.com/u/jhf80)\
**Post date:** [June 13, 2008, 5:46pm UTC](https://forum.kirupa.com/t/as2-problem-using-same-setup-for-all-images-in-gallery-3-wont-work/263204/2 "2008-06-13T17:46:17Z")

</div>

i’we been searching for the problem all day and tried changing one of the other pictures. and now it doesn’t work either…  
heres what im trying to do: my pictures are animated in Aftereffects and exported as fla’s then imported to flash as movieclips i am using this script to controll the picture movieclips behavior:

pixi.stop();  
var mouseListener:Object = new Object();  
mouseListener.onMouseMove = function() {  
if (\_xmouse \> 800 && !pixi.played) {  
pixi.play();  
} else {  
pixi.stop();

```
}

```

};  
Mouse.addListener(mouseListener);

all the picture movieclips have their own frame with framelabel… this works fine with most of them, only difference between the MC’s that work and those who don’t, is that the ones that doesn’t work are longer MC’s then the others. 45 vs 32 frames

---

<div class="post-metadata">

**Author:** ![jhf80](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@jhf80](https://forum.kirupa.com/u/jhf80)\
**Post date:** [June 13, 2008, 8:43pm UTC](https://forum.kirupa.com/t/as2-problem-using-same-setup-for-all-images-in-gallery-3-wont-work/263204/3 "2008-06-13T20:43:21Z")

</div>

anyone have any idea, opinion or tip… im desperate… HELP!!
