# Dynamically compositing a movieclip

**URL:** <https://forum.kirupa.com/t/dynamically-compositing-a-movieclip/302319>\
**Category:** flash\
**Created:** [December 27, 2009, 3:44am UTC](https://forum.kirupa.com/t/dynamically-compositing-a-movieclip/302319 "2009-12-27T03:44:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ls\_ac](https://avatars.discourse-cdn.com/v4/letter/l/eada6e/32.png) [@ls\_ac](https://forum.kirupa.com/u/ls_ac)\
**Post date:** [December 27, 2009, 3:44am UTC](https://forum.kirupa.com/t/dynamically-compositing-a-movieclip/302319/1 "2009-12-27T03:44:21Z")

</div>

I want to dynamically create a movieclip and draw a different image (via the mc.graphics functions) onto each of three frames. Eg: I want to draw a red square in frame one, a blue circle in frame two, and a green line in frame three.

I can do the drawing just fine, but how to get it into a specific frame, I just don’t know. Any ideas?
