This content has been marked as final. Show 4 replies
This seems to work:
Thanks for your post. I've been hacking away at this and I've got the following working:
1. Automatically rotates through the viewstack
2. Changes viewstack index based on mouse over/out events
3. Stops the rotation on mouse over events
4. Starts the rotation on mouse out events
So now I'm left with one problem to fix:
1. Changing the button states so that they hover as it's rotating through the viewstack.
If you remember this is the same issue that I was struggling with in an earlier post. Your previous solution was to use the dispatchEvent method and to assign a new event to the button but I'm struggling to get it to work correctly. Here's my code. Take a look at the buttonOver method to see where I'm at.
Thank you for your help.
Here ya go...
Thanks again for the code. I gave it a try and thanks to your code I noticed a few things that I was doing wrong. Mainly I was trying to use MOUSE_OVER/MOUSE_OUT instead of ROLL_OVER/ROLL_OUT. I also came to the conclusion that trying to update the button states from events triggered by the images was a bad idea. So I created a method that when called changes all of the button states to ROLL_OUT and then adjust the current button to ROLL_OVER. I'm able to call this method from multiple locations and it seems to do the trick.
Anyways... I would have been stuck with your help. So thanks. Here's a zip file of my project. This seems to work okay locally but I'm running into issues getting the XML file to load on my test server. I think it might be a crossdomain.xml issue. I'm going to try and resolve it on Monday. Aside from that I only have one quirk that's bothering me, when I move my cursor off a button it doesn't stay in the ROLL_OVER state of the current image. I'm gonna try and find a way to deal with this.