# Looping Buttons

**URL:** <https://forum.kirupa.com/t/looping-buttons/6104>\
**Category:** flash\
**Created:** [September 29, 2002, 7:56pm UTC](https://forum.kirupa.com/t/looping-buttons/6104 "2002-09-29T19:56:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![castner](https://avatars.discourse-cdn.com/v4/letter/c/58f4c7/32.png) [@castner](https://forum.kirupa.com/u/castner)\
**Post date:** [September 29, 2002, 7:56pm UTC](https://forum.kirupa.com/t/looping-buttons/6104/1 "2002-09-29T19:56:18Z")

</div>

I wanted to make my buttons move across my site in a looping fashion…(thanks to this forum I now know how to import a looping movie)…so i made them into a movie. The animation works great so do the rollovers…in the movie itself. But when I import that movie into the main stage of the site…the rollovers as well as go to actions are lost. My goal was to be able to have a continuous scrolling set of nav buttons. BTW.I was also unable to figure out how to get the moving buttons to stop on roll over…

Thank you for any 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 29, 2002, 8:08pm UTC](https://forum.kirupa.com/t/looping-buttons/6104/2 "2002-09-29T20:08:46Z")

</div>

Sounds like a common problem. If you load the movie into a movie clip make sure you target the movie clip.

So if you load a movie called test.swf in an mc called holder, your actions should be:

\_root.holder.gotoAndStop(frame);

This would make test.swf go an stop at frame.

I’m not sure what you mean as to whether you’re loading into a movie clip, a level or none - ie. just dragging onto the main timeline.

Either way just target the clip properly

\_root.mc.action  
\_root.thismc.insidethismc.action  
\_level1.action \<-- movie loaded into level 1  
\_level0.actions \<-- movie loaded into level 0 (main movie).

If that doens’t help, please be more specific about the problem.

Also try running a search of the posts. You might just find something.

---

<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 29, 2002, 11:08pm UTC](https://forum.kirupa.com/t/looping-buttons/6104/3 "2002-09-29T23:08:24Z")

</div>

its hard to know how you’ve done it without seeing the source but i would imagine you just did an animation of your buttons going in a circle so on the button actions in addition to the getURL command you can add a on(rollOver) stop(); command that will stop the animation and then set a on(rollOut, releaseOutside) play(); command.

hope this helps

if you still have more questions you should post your source or an example of what you’re trying to do 🙂

have a nice day!
