Ive figured out how to make an object selectable with this code:
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (this._currentFrame == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
Now that ive done that i want to know how to change the color of a selected object when i click a certain button ??
Can anyone help please thanks Jimmy.
create a Color object and use setRGB()
read the help file on it its pretty straightforward 
edit: yay! 600 posts!
Yer i can change the color but how do i direct the button to change only the selected object??
make a _root.selectedObject variable and store in it the current selected object…then target that selectedObject to color it
heres a really basic example…click the first button that makes the _root.selectedObject reference it, then click the bottom button that uses the _root.selectedObject to color the other button.
but why not jsut put the color stuff inside your
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
colorMe = new Color(this);
colorMe.setRGB(0x000000);
if (this._currentFrame == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
thats way more logical isnt it?
Thanks alot hey youve been a great help to me !
Altho the script you gave me works, it only works for one object how do i make it work for multiple objects ?
Cheers