# AS on photogallery on sliding page

**URL:** <https://forum.kirupa.com/t/as-on-photogallery-on-sliding-page/64104>\
**Category:** flash\
**Created:** [September 13, 2004, 9:39am UTC](https://forum.kirupa.com/t/as-on-photogallery-on-sliding-page/64104 "2004-09-13T09:39:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![poppy](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@poppy](https://forum.kirupa.com/u/poppy)\
**Post date:** [September 13, 2004, 9:39am UTC](https://forum.kirupa.com/t/as-on-photogallery-on-sliding-page/64104/1 "2004-09-13T09:39:04Z")

</div>

hi!  
i’m new on this forum and i’m new on flash mx as also, quite an as dummie.  
i’m trying to make a photogallery on page3 of my slidingpages. the slidingpages work fine and the gallery works also when not on the slidingpages. i just don’t know exactly where to put the actiona for the gallery so that e’thing works. if i put it on a frame in the timeline the slidingpages don’t work anymore. i’m not sure if ih ave to change something on the as (i used the code of the photogallery tutorials) or put a code that would make start the action when the button for page3 is released. wasn’t able to get that done  
would be thankful for help!!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 12:13pm UTC](https://forum.kirupa.com/t/as-on-photogallery-on-sliding-page/64104/2 "2004-09-13T12:13:40Z")

</div>

Look in your code for “\_root” and change that in “this”😉

scotty(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 1:32pm UTC](https://forum.kirupa.com/t/as-on-photogallery-on-sliding-page/64104/3 "2004-09-13T13:32:29Z")

</div>

thx 🙂  
After giving it a try the buttons are now working  
Im having trouble getting it to work though, whats the best way to use this function?

This is what im doing at the moment but doesnt seem to work, the menu seems to pop-up at what looks like to me at random x/y cords :S

onClipEvent (enterFrame) {  
if (hitTest(\_root.\_xmouse, \_root.\_ymouse, false)) {  
this.gotoAndPlay(“menuIn”);  
}  
}  
I basically want it to pop up if the mouse is over the movieclip

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 1:52pm UTC](https://forum.kirupa.com/t/as-on-photogallery-on-sliding-page/64104/4 "2004-09-13T13:52:08Z")

</div>

sometimes things can be sooo easy. thanks a lot!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 1:58pm UTC](https://forum.kirupa.com/t/as-on-photogallery-on-sliding-page/64104/5 "2004-09-13T13:58:06Z")

</div>

no problem:)

btw welcome to kirupaforums=)

scotty(-:
