Jump to content
Search Community

Combobox and Tween

LynnB test
Moderator Tag

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...