PDA

View Full Version : moving combobox


wishIKnew
09-12-2006, 03:43 PM
I can't figure out how to move a combobox I create dynamically

this.createClassObject(mx.controls.ComboBox, "my_combobox", 10);

This creates a combobox at (0,0).

Does anyone know how to move it?

Thanks

WIK

SoaringEagle2
09-23-2006, 08:53 PM
Try...

<combobox_instance>._x = <value>;
<combobox_instance>._y = <value>;

dont try using _width and _height to change it's size as these 2 will stretch the combobox, stretching the text too. If you want to resize it without stretching, use <combobox_instance>.setSize(xvalue, yvalue);

hope that helps,

SoaringEagle2 :)
www.phatchats.com