hi ,

here is the simple code 

var image1:Image;
var image2:Image;

public function init():void
{
image1 = new Image();
image1.x = image1.y = 0;
image1.width = image1.height = 200;

image1.source = "U:\\6.jpg";

image2 = new Image();
image2.source = "U:\\5.jpg";
image2.x = image2.y = 0;
image2.width = image2.height = 200;

this.addChild(image1);

}

public function onclick(event:Event):void
{
this.removeChild(image1);
this.addChild(image2);
}

when i click the button to switch the two image, handled bythe 
onclick function. I will notice a very anoying flickering.

so i can't remove and add child in one frame?

how the redraw system works...

Thanks for any info.

Best regards
yinan



Reply via email to