public function moveGraphicToBack(graphic:Graphic):void { var graphicsProvider:ArrayCollection = graphicsLayer.graphicProvider as ArrayCollection; var index:int = graphicsProvider.getItemIndex(graphic); if (index > -1) { graphicsProvider.removeItemAt(index); } graphicsProvider.addItemAt(graphic, 0); }