Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple RGB question

Status
Not open for further replies.

Adam14

Technical User
Nov 8, 2003
193
CA
How do I get .setRGB(0)from black to white? I tried .setRGB(255,255,255) and some other combinations, with no luck. Thanks. And also, with this script:

onClipEvent (load) {
startDrag (this, true);
Zapper = new Color(this);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Zap)) {
Zapper.setRGB(0);
setProperty (_target, _y, _y+50);
setProperty (_root.Zap, _alpha, 50);
stopDrag ();
stop ();
} else {
setProperty (_root.Zap, _alpha, 100);
}
}

is it normal that the Bug MC hovers above the cursor, instead of being able to actually grab it, or would I have to convert to a button and do a mouse event? Sorry 'bout the newbie questions :)

Adam
 
Probably obvious, but the Bug Mc is what the above actions are attched to - forgot to put that in. Thanks.
 
Ok, I figured out the colour thing. the other part was more curiosity. if someone has some input, that's cool, if not, that's cool too. :)

Adam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top