# Components and setting depth

**URL:** https://forum.kirupa.com/t/components-and-setting-depth/264281
**Category:** flash
**Created:** [June 24, 2008, 5:10pm UTC](https://forum.kirupa.com/t/components-and-setting-depth/264281 "2008-06-24T17:10:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![MontsterTX](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@MontsterTX](https://forum.kirupa.com/u/MontsterTX)
#### Post date: [June 24, 2008, 5:10pm UTC](https://forum.kirupa.com/t/components-and-setting-depth/264281/1 "2008-06-24T17:10:10Z")

</div>

I have an easing scrollbar component in my Flash document that always appears in the foreground, regardless of what layer its on (screenshot attached).

Looking around the Web, I figure that I have to somehow manage the depth of the component, but I can’t figure out how.

What’s the easiest way to script the depth of a component so that it doesn’t cover the topmost layer of my presentation?

Thanks.
