Skip to main content
Inspiring
October 6, 2008
Question

xml generated menu rollover

  • October 6, 2008
  • 3 replies
  • 376 views
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.
This topic has been closed for replies.

3 replies

crilaAuthor
Inspiring
October 6, 2008
hahaha yeah. its supposed to be ironic. i <3 flash!
Colin Holgate
Inspiring
October 6, 2008
You may need to get the site flashdoesn'tsuckafterall.net.


Colin Holgate
Inspiring
October 6, 2008
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");
}
crilaAuthor
Inspiring
October 6, 2008
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!