# Actionscript help to make grphics appear opaque!

**URL:** <https://forum.kirupa.com/t/actionscript-help-to-make-grphics-appear-opaque/205055>\
**Category:** Uncategorized\
**Created:** [October 25, 2006, 6:30pm UTC](https://forum.kirupa.com/t/actionscript-help-to-make-grphics-appear-opaque/205055 "2006-10-25T18:30:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spancholi](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@spancholi](https://forum.kirupa.com/u/spancholi)\
**Post date:** [October 25, 2006, 6:30pm UTC](https://forum.kirupa.com/t/actionscript-help-to-make-grphics-appear-opaque/205055/1 "2006-10-25T18:30:34Z")

</div>

Is there an actionscript that can make a graphic opaque & sit on top of multiple layers? I have a situation where i have so many layers that I can just make something sit on top of another thing by adjusting the layer.

I need some code that will make this graphic always be on top of everything???

Please help!  
Thanks

---

<div class="post-metadata">

**Author:** ![iLikePie](https://avatars.discourse-cdn.com/v4/letter/i/85f322/32.png) [@iLikePie](https://forum.kirupa.com/u/iLikePie)\
**Post date:** [October 26, 2006, 1:48am UTC](https://forum.kirupa.com/t/actionscript-help-to-make-grphics-appear-opaque/205055/2 "2006-10-26T01:48:38Z")

</div>

i don’t quite understand what you mean… if you just put the graphic on a new layer and put it above all the others, it will automatically be on top of them.

otherwise the only thing i can imagine you might mean is to use swapDepth(); (look it up in the actionscript dictionary)

hope it helps 🙂

- stuart
