Dynamic menu .. help!

Yuck. So I’m trying to create a menu that is generated by ActionScript.

It consists of a tab movieClip, which has two movieClips within it: tabFG and tabShadow. It then creates a text field. The idea is to then align the tab object with the corresponding text field and scale it based on how large the text is. This worked fine when there was just one tab, but when trying to do many it gets problematic (as in it doesn’t work at all).

The other thing I’m trying to do is colorize each tab (via color.setRGB) and apply a drop shadow. The problem is once I colorize the object, the shadow takes on its color, even though it’s a separate object within the larger tab movieClip.

I’m at a loss for how to get this to work. Please help!