PDA

View Full Version : Sizing problem


PEF
12-14-2004, 02:10 PM
I've writed a collection of components, inherited from mx.core.UIComponent.
To my surprise I've discovered that my components interfere in an undesirable way. When putting several components on the stage, the size (width and height) of each component are influenced by the last one added. As long as all components are of the same type everything works well.

Somewhere along the road I must be doing something wrong, but I can't figure out what it is.

Hope someone can help.
/Peter

PEF
12-15-2004, 07:41 PM
When writing components in Actionscript 2.0 it's important, that the defined boundingBox movieclip has the same size in each component. When draged to the first frame on the stage it can be resized to the desired size. I wasn't aware of this and that's why my components acted unpredictable.