# Reflect class and binary data

**URL:** <https://forum.kirupa.com/t/reflect-class-and-binary-data/287226>\
**Category:** Uncategorized\
**Created:** [April 28, 2009, 10:05am UTC](https://forum.kirupa.com/t/reflect-class-and-binary-data/287226 "2009-04-28T10:05:33Z")\
**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 28, 2009, 10:05am UTC](https://forum.kirupa.com/t/reflect-class-and-binary-data/287226/1 "2009-04-28T10:05:33Z")

</div>

I am using pixelfumes reflect class to create a releflection, the problem i have is

(i) It only accepts reference to a movieclip.

(ii) I cannot cast my binary data as a movieClip

**var item:Bitmap** has to stay as a bitmap so either I make a copy of it as a moveclip and reflect it **or** find a way to pass it directly into the **new Reflect()** constructor.

Many thanks.

var item:Bitmap = Bitmap(evt.currentTarget.loader.content);  
this.addChild(item);

```
         var test_mc:MovieClip;
                test_mc = MovieClip(evt.currentTarget.loader.content);
        
    var r1:Reflect = new Reflect({mc:test_mc, alpha:50, ratio:50,
distance:0, updateTime:0, reflectionDropoff:1});
```
