PDA

View Full Version : Rollout button help



Bacizone
December 6th, 2003, 12:22 PM
Hi,

I'd like to make a button, but also with rollout state, thus I have to make it from MovieClips.

All I have done is that incorporated three MC (up_mc, rollover_mc, rollout_mc) into a btn_mc, and applied some AS code to call the different mc-s at different mouse states.

I attached an fla made with MX to show how I imagined.. but still does not work.

Please help.

Thanks!

cubed
December 6th, 2003, 12:50 PM
Something like this?:?)

Bacizone
December 6th, 2003, 01:05 PM
Thanks Cubed! This is what I thought of...

Just one more question: you used the deprecated "TellTarget".

on (rollOver) {
tellTarget ("_root.out") {
gotoAndPlay(2);

What would it be like with the dot syntax?

Bacizone
December 6th, 2003, 05:04 PM
Ok, I made it for the dot syntax:

e.g.:
_root.lower.onRollOver = function () {
_root.out_mc.gotoAndPlay(2);
}
_root.lower.onRollOut = function () {
_root.out_mc.gotoAndPlay(16);