# Button.prototype.setProperty .... \_global var

**URL:** https://forum.kirupa.com/t/button-prototype-setproperty--global-var/12791
**Category:** Uncategorized
**Created:** [February 4, 2003, 7:55pm UTC](https://forum.kirupa.com/t/button-prototype-setproperty--global-var/12791 "2003-02-04T19:55:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![shuga](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@shuga](https://forum.kirupa.com/u/shuga)
#### Post date: [February 4, 2003, 7:55pm UTC](https://forum.kirupa.com/t/button-prototype-setproperty--global-var/12791/1 "2003-02-04T19:55:03Z")

</div>

i would like to set up a movie as an experiment with a bunch of buttons and set properties to those buttons globally

for instance I have a bunch of green lil buttons and onLoad I want them to appear black so setRGB(0x000000); would do that and then on rollOver I want them to setRGB (0x0000FF);

then another change for rollOut back to black and so on

I don’t want this to have to be in every button I would like to be able to just make a movieclip with the text in it and have it behave like a button with these properties that i can edit in one script on the main timeline instead of editing properties attached to every button

does this make sense?

thanks very much for your help:whistle:
