Copy link to clipboard
Copied
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
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");
};
Copy link to clipboard
Copied
you can't do that with buttons in as2.
to do that, use movieclip buttons.
Copy link to clipboard
Copied
b1.onPress = function() {
getURL("mypdf.pdf", _blank);
};
b2.onPress = function() {
gotoAndStop(b1);
};
i was thinking something like that.
Copy link to clipboard
Copied
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");
};
Find more inspiration, events, and resources on the new Adobe Community
Explore Now