There is a problem that drives me crazy, but I’m sure there is an easy way to solve this.
So… I want to build a flash based website and place there 4 button MovieClip instances. Once the user clicks a button, all the EventListeners the button attached to (Mouse_OVER, Mouse_OUT, CLICK) are removed until you click another one. Then the previous button gets these listeners back again. One button is always active at a time, so you can’t turn on/off buttons.
I thought it would be easier to write a ButtonClass and link the button MovieClip to it. But I had to realize that I can’t listen that previous button from that class, because it only listens itself obviously. I’m trying to use “dispatchEvent” but I can’t get it to work.
In the flash movie I have only one frame, 'cause I’m trying to do this without the timeline. I want to use Classes and this and that to practice but I’m stuck with this problem.
I hope I was clear about this and if you have any idea or something, I’d be happy…
Bless