# Flash gallery thumbnail linking problems

**URL:** <https://forum.kirupa.com/t/flash-gallery-thumbnail-linking-problems/290809>\
**Category:** Uncategorized\
**Created:** [June 19, 2009, 8:37pm UTC](https://forum.kirupa.com/t/flash-gallery-thumbnail-linking-problems/290809 "2009-06-19T20:37:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mung](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@mung](https://forum.kirupa.com/u/mung)\
**Post date:** [June 19, 2009, 8:37pm UTC](https://forum.kirupa.com/t/flash-gallery-thumbnail-linking-problems/290809/1 "2009-06-19T20:37:15Z")

</div>

im working on a photo gallery, and working with AS3, basically i have a slider where when the mouse moves to the left or right of the thumbnail “strip”, it slides to that direction, therefore the layout of the gallery is like so:

(for the thumbnail slider) **MAIN TIMELINE -\> gallery\_mc -\> imagebar\_mc -\> imagebarinside\_mc**

the thumbnails all have instance names and are buttons.

(for the full images) \*\*MAIN TIMELINE -\> gallery\_mc -\> images\_mc

\*\*im having problems getting the thumbnail buttons to play the images.

heres the AS ive been using:

\*\*import flash.events.MouseEvent;

_thumbnailinstancename_.addEventListener(MouseEvent.CLICK, thmb24Click);

function thmb24Click(event:MouseEvent):void{  
gotoAndPlay(“_frameanchorpointforimagemovieclip_”)  
}\*\*

i would really appreciate it if i could get some help on this 🙂
