setStyle() Method: Flex setStyle() method is used to change an object's style properties at runtime, for example in the script section you can write someObject.setStyle("fontSize", varSize); to change someObject’s font size to the size stored in the variable “varSize”. Resize Problem with setStyle(): The problem I faced using setStyle() was that I wanted a textAarea to resize its width after the textArea’s fontSize is increased. For example if the font size is set to too large which cannot be accommodated in the current width then the text will not fit in the textArea nor the textArea will resize itself if the vertical and horizontal Scrolling policy is set to “off”. The straight forward approach which should (but didn’t ) work is given below to achieve the resizing effect. public function setFontSize(): void { myTextArea.setStyle( "fontSize" ,varSize); myTextArea.validateProperties(); myTextArea.width = textareaScrolling.textWidth; } However the textArea’s w...