rosem
11-17-2008, 04:17 AM
Hey Everyone,
I'm working on charting/graphic in AS3 and have a quick question. I have a Bar class, and a Tooltip class. When you click any Bar on the graph a Tooltip pops up to display the data for that Bar.
My question is, how do I tell the Tooltip class to close when another Tooltip is opened? So if I click on the 5th Bar and a Tooltip comes up, how do I get it to go back down when I click on the 9th Bar?
Is there a design pattern for this? Would I make a custom event listener? I'm not sure what would be the best way to do this.
Thanks,
Mike
I'm working on charting/graphic in AS3 and have a quick question. I have a Bar class, and a Tooltip class. When you click any Bar on the graph a Tooltip pops up to display the data for that Bar.
My question is, how do I tell the Tooltip class to close when another Tooltip is opened? So if I click on the 5th Bar and a Tooltip comes up, how do I get it to go back down when I click on the 9th Bar?
Is there a design pattern for this? Would I make a custom event listener? I'm not sure what would be the best way to do this.
Thanks,
Mike