# Reference BitmapData within a MovieClip ? \[AS3\]

**URL:** <https://forum.kirupa.com/t/reference-bitmapdata-within-a-movieclip-as3/328567>\
**Category:** flash\
**Created:** [May 26, 2012, 10:13pm UTC](https://forum.kirupa.com/t/reference-bitmapdata-within-a-movieclip-as3/328567 "2012-05-26T22:13:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scheisse](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Scheisse](https://forum.kirupa.com/u/Scheisse)\
**Post date:** [May 26, 2012, 10:13pm UTC](https://forum.kirupa.com/t/reference-bitmapdata-within-a-movieclip-as3/328567/1 "2012-05-26T22:13:30Z")

</div>

I have a MovieClip that contains a 200x200 png on every frame and nothing else

I am trying to gotoAndStop(); on every frame and then pass the bitmapData within that frame into a function

**SS = new SpriteSheet(mc.getChildAt(0),X,Y,0);**

I keep getting this error:  
**TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Shape@26444089 to flash.display.BitmapData.**

Any thoughts?  
Thanks.
