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

xml generated menu rollover

Explorer ,
Oct 06, 2008 Oct 06, 2008

Copy link to clipboard

Copied

so i am parsing an xml file and each node becomes a button. i figured out how to make each click work properly, but i can not get the rollovers to work. with the code below makes it register you are rolling over one of the buttons, but it only shows the rollover on the last button in my list. im thinking its because i am not referencing my button correctly, but im not sure what the reference is because the buttons are created through iterations.

any pointers or suggestions would be greatly appreciated.
TOPICS
ActionScript

Views

318

Translate

Translate

Report

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
LEGEND ,
Oct 06, 2008 Oct 06, 2008

Copy link to clipboard

Copied

Try this:

function overy (e:Event):void {
MovieClip(e.target.parent).gotoAndStop("twoB");
trace("over");
}
function outy (e:Event):void {
MovieClip(e.target.parent).gotoAndStop("oneB");
trace("out");
}

Votes

Translate

Translate

Report

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
Explorer ,
Oct 06, 2008 Oct 06, 2008

Copy link to clipboard

Copied

yes! you are the man! i almost gave in and put the rollover actionscript within the button. thank you for pulling me back from that ledge. hahaha! once again many thanks!

Votes

Translate

Translate

Report

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
LEGEND ,
Oct 06, 2008 Oct 06, 2008

Copy link to clipboard

Copied

You may need to get the site flashdoesn'tsuckafterall.net.


Votes

Translate

Translate

Report

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
Explorer ,
Oct 06, 2008 Oct 06, 2008

Copy link to clipboard

Copied

LATEST
hahaha yeah. its supposed to be ironic. i ❤️ flash!

Votes

Translate

Translate

Report

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