How do I get control over how the ComboBox displays it's items upward or
downward (after opening)? It appears that when I have a certain amount of
items, then it automatically goes upward. If I have less items than it goes
downward. But I'm not sure if this is directly connected to the invariance of
upward and downward direction.
I have not been able to find any reference for this. Can anyone shed some
insight on why this is happening and how to control it?
Much thanks! :confused;
Munish - 18 Jul 2008 05:06 GMT
> How do I get control over how the ComboBox displays it's items upward or
> downward (after opening)? It appears that when I have a certain amount of
> items, then it automatically goes upward. If I have less items than it goes
> downward. But I'm not sure if this is directly connected to the invariance of
> upward and downward direction.
A combo box by default always opens downward IF the height of the
dropdown is within the bounds of the stage. That is to say, if you
have a combo box situated near the bottom of your movie, and if
opening the menu downward would cause ANY part of the menu to get cut
off, it opens upward. So this is dependent on the y location of your
box, and the number of rows it displays.
DMennenoh **AdobeCommunityExpert** - 18 Jul 2008 14:51 GMT
It always tries to go down first. If it doesn't fit, then it opens up, so
you can see all the available choices. I don't think you have control over
that, but you can affect it somewhat by modifying the rowCount property,
which is the number of visible items in the list.

Signature
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/