LynnB Posted May 12, 2010 Share Posted May 12, 2010 I have a simple tween on a menu tab that falls down on rollover and retracts on rollout. In this tab is a contact form. The problem is when you click on the combobox in the form to select a recipient the menu tab retracts which I don't want and it leaves the combobox list on the stage. The file better explains the issue. What is causing it to do this? Thanks Link to comment Share on other sites More sharing options...
GreenSock Posted May 12, 2010 Share Posted May 12, 2010 That has nothing to do with TweenLite/Max really - it's just that the ComboBox component creates another DisplayObject on top of everything when you open it, so when you roll over that, it causes the ROLL_OUT event to be triggered on your menu. My recommendation would be to keep track of the state of that ComboBox and don't let your ROLL_OUT trigger if the ComboBox is open. Of course you'll need to trigger the ROLL_OUT if the user clicks off the open ComboBox too. I've attached an example. Link to comment Share on other sites More sharing options...
LynnB Posted May 12, 2010 Author Share Posted May 12, 2010 Thank you so much, Jack. Perchance did you save it in CS4? I'm in CS3 and Flash is telling me... "Failed to open the document". Link to comment Share on other sites More sharing options...
GreenSock Posted May 12, 2010 Share Posted May 12, 2010 Yep, here you go. Link to comment Share on other sites More sharing options...
LynnB Posted May 13, 2010 Author Share Posted May 13, 2010 sorry to have bothered your good self with that. It open and the combobox works wonderfully now. Once again, you're the best, Jack! Thanks much! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now