# Rollover, rollout, release cleanup

**URL:** <https://forum.kirupa.com/t/rollover-rollout-release-cleanup/203642>\
**Category:** Uncategorized\
**Created:** [October 12, 2006, 6:52pm UTC](https://forum.kirupa.com/t/rollover-rollout-release-cleanup/203642 "2006-10-12T18:52:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![titter](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@titter](https://forum.kirupa.com/u/titter)\
**Post date:** [October 12, 2006, 6:52pm UTC](https://forum.kirupa.com/t/rollover-rollout-release-cleanup/203642/1 "2006-10-12T18:52:01Z")

</div>

Its been about 2 years since my last post, but I have gotten back into flash, and while working on a site for a local company, I came across a nav idea for their product line. Everything I have coded works great, but was wondering if there was a way to the code a lot simpiler then what I have made it. It currently is using 7 global vars for each button, along with a lot of if statements on each button itself. Basically the buttons have a rollover animation, a rollout animation, and when you click on a button it holds the rollover animation, and will release another button that is being held. I will post the .fla for ease since the code is lengthy. On the main timeline I set the global vars, and each movieclip has its own actions as well. Thanks in advance!

here is the source file:  
[http://www.mobmototb.com/justin/supertrak/flash/header.fla](http://www.mobmototb.com/justin/supertrak/flash/header.fla)

for this interested in seeing the site (still in development 😊):  
[http://www.mobmototb.com/justin/supertrak/](http://www.mobmototb.com/justin/supertrak/)
