Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

help with button frame

New Here ,
Mar 29, 2013 Mar 29, 2013

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

TOPICS
ActionScript
421
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 29, 2013 Mar 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");

};

Translate
Community Expert ,
Mar 29, 2013 Mar 29, 2013

you can't do that with buttons in as2.

to do that, use movieclip buttons.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 29, 2013 Mar 29, 2013

b1.onPress = function() {

getURL("mypdf.pdf", _blank);

};

b2.onPress = function() {

gotoAndStop(b1);

};

i was thinking something like that.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 29, 2013 Mar 29, 2013
LATEST

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");

};

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines