# Background gets drawn in front of mc

**URL:** <https://forum.kirupa.com/t/background-gets-drawn-in-front-of-mc/33721>\
**Category:** flash\
**Created:** [October 22, 2003, 9:04pm UTC](https://forum.kirupa.com/t/background-gets-drawn-in-front-of-mc/33721 "2003-10-22T21:04:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hans\_Kilian](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@Hans\_Kilian](https://forum.kirupa.com/u/Hans_Kilian)\
**Post date:** [October 22, 2003, 9:04pm UTC](https://forum.kirupa.com/t/background-gets-drawn-in-front-of-mc/33721/1 "2003-10-22T21:04:27Z")

</div>

Hi.

I have some text placed on the ‘canvas’ in Flash. I also draw some stuff in an onEnterFrame function on the main timeline.

The stuff I draw in the onEnterFrame gets placed behind the text I have on the canvas.

I’d really like to have the stuff I draw in front, but I don’t know how to accomplish this.

Anyone know how to do this?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 23, 2003, 1:40am UTC](https://forum.kirupa.com/t/background-gets-drawn-in-front-of-mc/33721/2 "2003-10-23T01:40:28Z")

</div>

… I assume you’re using the drawing API?

Create a movie clip in a higher depth than the text by using the [[font=courier new]MovieClip.createEmptyMovieClip()[/font]](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary512.html) method, or create it manually and put it in a layer above the text, and draw the stuff with it. 😛
