Flash Player 6 (6.0 79.0).
Flash MX 2004.
componentInstance.setSize(width,height)
width A number that indicates the width of the object, in pixels.
height A number that indicates the height of the object, in pixels.
Nothing.
Method; resizes the object to the requested size. You should pass only integral values to UIObject.setSize(), or the component may appear fuzzy. This method (like all methods and properties of UIObject) is available from any component instance.
When you call this method on a ComboBox instance, the combo box is resized and the rowHeight property of the contained list is also changed.
This example resizes the pBar component instance to 100 pixels wide and 100 pixels high:
pBar.setSize(100, 100);
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/mx2004/main_7_2/00002951.html
Comments
FlashGen said on Aug 19, 2004 at 7:44 AM :