Button scripting question

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

Try this…

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=10598

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.

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.

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=25999

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 :stuck_out_tongue:

Well anyway, check either link if you still want to script it.

:stuck_out_tongue:

yeah… i was going to edit it, but you already posted it. :thumb:

Yeah, I think I’ll make it easier on myself on just do the tween method. Thanks for the help guys.