PDA

View Full Version : paintbrush won't change color



SetroGamer
October 26th, 2003, 06:20 PM
I'm working on a kind of "interactive logo" for a site and I've encountered a problem. When they drag the paintbrush over a jar of paint, the text and the tip of the paintbrush should change to the color of the paint. The problem I'm having is that the tip of the paintbrush won't change color. I attached the file. If someone could fix it I'd really appreciate it. ^_^

scotty
October 27th, 2003, 05:27 AM
it's not working cause your paintbrush and paintbrushtip are buttons.
change them to mc(in the property window) and put this (new)code:
onClipEvent (enterFrame) {
this.onPress = function() {
this.startDrag(true);
};
this.onRelease = function() {
stopDrag();
};
}

scotty:thumb:

SetroGamer
October 27th, 2003, 05:51 PM
It works-thank you!! ^_^

scotty
October 27th, 2003, 06:16 PM
no problem:thumb: