yourDataGrid.setSize ( yourDataGrid.width, 400); ----- Original Message ----- From: "Mike Anderson" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> Sent: Wednesday, April 12, 2006 7:07 PM Subject: [Flashcoders] Quick setSize() question
Hello all, If I am interested in only sizing a component using the setSize method - but if I only wanted to set a single parameter (width or height), how do I properly pass the variables? Can I simply do this, if I only wanted to set a single parameter? componentInstance.setSize( null, 20 ); Or am I forced to pass it valid numbers for both values? I know I could feed the function the component's existing value like this: var tempVar:Number = componentInstance._width; componentInstance.setSize( tempVar, 20 ); But that seems silly. Could anybody clarify that for me? Thanks, Mike _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com