當多次改變控件的某些屬性(如 高,寬,數據)後,調用該方法以便一次性的刷新相關屬性和佈局等。較之於一次一次的自動刷新,更有效率。
invalidateDisplayList():void--Calling this method results in a call to the component's validateDisplayList() method before the display list is rendered.
invalidateProperties():void--Calling this method results in a call to the component's validateProperties() method before the display list is rendered.
invalidateSize():void--Calling this method results in a call to the component's validateSize() method before the display list is rendered.
validateNow():void--Validates and updates the properties and layout of this object by immediately calling validateProperties(), validateSize(), and validateDisplayList(), if necessary.