View Full Version : Button scripting question...
NitroLiq
June 16th, 2003, 04:56 PM
Hoping someone can point me in the right direction with this. Instead of creating a button and nesting movie clips for each state, I'm trying to script an animated button of a square (no fill) where on rollover the stroke color changes from one color to another (tweening the tint). I want to do this to the button symbol so it's the same for all instances. Is this possible or do I have to go the button > nested MC route?
Sorry if this is lame...it's been awhile since I've used Flash and I've forgotten quite a bit.
Pete
lostinbeta
June 16th, 2003, 05:07 PM
Try this...
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=10598
NitroLiq
June 16th, 2003, 05:28 PM
Ok, i had actually figured out that bit of code:
on (rollOver) {
this.gotoAndPlay(frame);
}
on (rollOut) {
this.gotoAndPlay(frame);
}
I just thought there would be a way to, say instead of playing frame/label animations for each state, I could somehow script the tint change.
lostinbeta
June 16th, 2003, 05:30 PM
You COULD script the tint change, but I think it would be more CPU usage efficient if you did it with a tween in this case.
kode
June 16th, 2003, 05:31 PM
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=25999
lostinbeta
June 16th, 2003, 05:32 PM
LOL kax, I was just about to post this link..
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=22838
But you posted a link to a thread where I posted that link before.
Wow.. how confusing :P
Well anyway, check either link if you still want to script it.
kode
June 16th, 2003, 05:34 PM
:P
yeah... i was going to edit it, but you already posted it. :thumb:
NitroLiq
June 16th, 2003, 05:48 PM
Yeah, I think I'll make it easier on myself on just do the tween method. Thanks for the help guys.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.