Flash, Flex & AIR: A brief survey
View more documents from Travis Isaacs.
invalidateList tells the component that the data has changed, and it needs to reload it and re-render it.
invalidateDisplayList tells the component that it needs to redraw itself (but not necessarily reload its data).
package com
{
import flash.display.DisplayObject;
import mx.containers.HBox;
public class MyHBox extends HBox
{
public function MyHBox()
{
super();
}
public override function addChild
(child:DisplayObject):DisplayObject
{
this.addChildAt(child,0);
return child
}
}