Skip to main content
Participant
March 29, 2013
Answered

help with button frame

  • March 29, 2013
  • 1 reply
  • 446 views

i have create one button(b1) i'd double clicked and at "over" frame change color, so whene i am over of that button i saw the color where i choose at "over" frame.

i have also one more button(b2) and i want when i clicked on that the button b1 go to the "over" frame color until i release the b2.

any help with that?

thanks antony

This topic has been closed for replies.
Correct answer kglad

if b1 and b2 are movieclips and you label their up and clicked frames with the obvious, you can use something like:

b1.onRelease = function() {

b2.gotoAndStop("up");

this.gotoAndStop("clicked");

};

b2.onRelease = function() {

b1.gotoAndStop("up");

this.gotoAndStop("clicked");

};

1 reply

kglad
Community Expert
Community Expert
March 29, 2013

you can't do that with buttons in as2.

to do that, use movieclip buttons.

Participant
March 29, 2013

b1.onPress = function() {

getURL("mypdf.pdf", _blank);

};

b2.onPress = function() {

gotoAndStop(b1);

};

i was thinking something like that.

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
March 29, 2013

if b1 and b2 are movieclips and you label their up and clicked frames with the obvious, you can use something like:

b1.onRelease = function() {

b2.gotoAndStop("up");

this.gotoAndStop("clicked");

};

b2.onRelease = function() {

b1.gotoAndStop("up");

this.gotoAndStop("clicked");

};