# Reusable buttons

**URL:** https://forum.kirupa.com/t/reusable-buttons/98402
**Category:** Uncategorized
**Created:** [January 6, 2004, 10:10pm UTC](https://forum.kirupa.com/t/reusable-buttons/98402 "2004-01-06T22:10:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cf\_montare](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@cf\_montare](https://forum.kirupa.com/u/cf_montare)
#### Post date: [January 6, 2004, 10:10pm UTC](https://forum.kirupa.com/t/reusable-buttons/98402/1 "2004-01-06T22:10:04Z")

</div>

I hope there’s a very simple answer for this…

I am creating a map of the US in Flash - to behave very similarly to this one: [http://www.nicholsinc.com/contact/](http://www.nicholsinc.com/contact/)

What I need is to create a single flash library that I can use for multiple clients (and thus multiple mouseover color schemes). That means I’d like to create a parent flash file that sets some variables - highlight\_color, click\_color, and script\_href, that will control the appearance and behavior of the individual state buttons which will be pulled from aforementioned library.

So what I need to know is,

1. how do I set up an external library of buttons that will use \_root.highligh\_color as a fill in the Over state, \_root.click\_color as a fill in the Down state, etc.
2. how do I successfully use those buttons in the parent flash file

I appreciate any help; hopefully I’ve been clear enough to avoid confusion.
