Somebody
03-17-2005, 04:47 PM
I just can't find an answer for this one! My component consists of a thin (8 pixel wide) button which, when pressed, slides out a larger 300 pixel wide box, akin to the ComboBox but larger. The bounding box Movie Clip is set to the size of the little button. When the component is added to the stage, the button is 1 pixel wide! At runtime, the component displays and acts as expected.
The larger box, a mask of the same size (as the box), and the button are drawn in the draw method. I know this method is executed when the component is added to the Stage. Could it be that everything is being squashed into the bounding box at design-time? How do I avoid this behavior?
The larger box, a mask of the same size (as the box), and the button are drawn in the draw method. I know this method is executed when the component is added to the Stage. Could it be that everything is being squashed into the bounding box at design-time? How do I avoid this behavior?