PDA

View Full Version : Buttons Rollover/Rollout without losing image when moving from Hit Area


blueyesol
01-20-2010, 06:00 PM
I have created a button that has the following Action Code:

on (rollOver) {
align_callout.gotoAndPlay(2);

}
on (rollOut) {
align_callout.gotoAndStop(1);
stop();

}

Simple right? Well I need the action on the rollOver to stay visible even if I rollOut off of the Hit Area. Is there a way to keep the image visible because I have hyperlinks that the viewer may want to click on, but can't because as soon as I move away from the Hit Area it stops.

Can anyone help please?
Thx,
Blueyesol

blueyesol
01-25-2010, 04:07 PM
I have been all over the web searching for answers to my headache!

I need to disable multiple buttons I have in my timeline, when a movieclip opens. Once the movieclip is closed, I need for the buttons to be enabled again.

I have the following code below inserted on one of the buttons:

on (press) {
enhance_callout.gotoAndPlay(2);
stop();
aa_btn.enabled = false;
simplify_btn.enabled = false;
engage_btn.enabled = false;
customer_btn.enabled = false;
align_btn.enabled = false;
}
on (releaseOutside) {

enhance_callout.gotoAndStop(0);
aa_btn.enabled = true;
simplify_btn.enabled = true;
engage_btn.enabled = true;
customer_btn.enabled = true;
align_btn.enabled = true;

}
I realize that this is a bit much, but it is the only way I can get it to function, up until I close out the movieclip. Once I close the movie clip the buttons do not enable again.
I have attached the .FLA in case anyone wants to help.
http://www.bessmedia.com/clients/manheim_strategy2.fla


Thx!
Blueyesol