I have a carousel that adds images from an xml files. I am trying to create a reflect of the image. Below is my function to create the image.
Thanks.
public function createItem(image_path:String, image_name:String):void {
var new_carousel_item:CarouselItem = new CarouselItem(image_path);
new_carousel_item.visible = false;
new_carousel_item.position = all_items.length * ((Math.PI * 2) / total_to_display);
this.addChild(new_carousel_item);
all_items.push(new_carousel_item);
new_carousel_item.buttonMode = true;
new_carousel_item.addEventListener(MouseEvent.CLICK, expandImage);
}