# Reflect image in carousel

**URL:** <https://forum.kirupa.com/t/reflect-image-in-carousel/287153>\
**Category:** flash\
**Created:** [April 27, 2009, 12:00pm UTC](https://forum.kirupa.com/t/reflect-image-in-carousel/287153 "2009-04-27T12:00:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RossKidd](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@RossKidd](https://forum.kirupa.com/u/RossKidd)\
**Post date:** [April 27, 2009, 12:00pm UTC](https://forum.kirupa.com/t/reflect-image-in-carousel/287153/1 "2009-04-27T12:00:56Z")

</div>

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);

```

}
