# Bringing layers forward with actionscript

**URL:** <https://forum.kirupa.com/t/bringing-layers-forward-with-actionscript/8077>\
**Category:** Uncategorized\
**Created:** [November 13, 2002, 12:52pm UTC](https://forum.kirupa.com/t/bringing-layers-forward-with-actionscript/8077 "2002-11-13T12:52:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spark](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Spark](https://forum.kirupa.com/u/Spark)\
**Post date:** [November 13, 2002, 12:52pm UTC](https://forum.kirupa.com/t/bringing-layers-forward-with-actionscript/8077/1 "2002-11-13T12:52:24Z")

</div>

hi, i was wondering if there is any way of making a layer or a symbol thats behind another one come to be over the top of the other one.

---

<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:** [November 13, 2002, 1:11pm UTC](https://forum.kirupa.com/t/bringing-layers-forward-with-actionscript/8077/2 "2002-11-13T13:11:49Z")

</div>

you can use swapdepths() to er…swap depths between mc’s.

---

<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:** [November 13, 2002, 2:59pm UTC](https://forum.kirupa.com/t/bringing-layers-forward-with-actionscript/8077/3 "2002-11-13T14:59:36Z")

</div>

thanx mate, still a problem tho,  
i have a stack of movie clips on 1 layer which has a mask, i have buttons assigned to show a different movie clip as each button is pressed, its just that when i press a button the movie clip assigned to it apears right on top of everything no longer behind the mask, but all i want is to put it still in the mask but on top of the other movie clips in that mask =o)

its had me goin for weeks now, lol

thanx for your help

=)Benjamin=)

---

<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:** [November 13, 2002, 7:54pm UTC](https://forum.kirupa.com/t/bringing-layers-forward-with-actionscript/8077/4 "2002-11-13T19:54:05Z")

</div>

I would say, put all of the movie clips that are “inside the mask” into a movie clip itselft. Then, apply the swapdepths to that movie clip.

I hope that makes sense to you.

Just in case

```
 Mask
         Movie Clip //apply swapdephts code here, and swapdepths between movies inside here only!
```

---

<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:** [November 17, 2002, 3:12pm UTC](https://forum.kirupa.com/t/bringing-layers-forward-with-actionscript/8077/5 "2002-11-17T15:12:51Z")

</div>

i was wondering, is it possible for a button to check what frame a movieclip it stopped on, and if the movieclip is on the frame that the button is asking for, to perform a function like ‘goto and play’

thanx for reply’s

---

<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:** [November 18, 2002, 4:43pm UTC](https://forum.kirupa.com/t/bringing-layers-forward-with-actionscript/8077/6 "2002-11-18T16:43:26Z")

</div>

Yep. movieclips have a \_currentframe property. Read-only, by the way.

pom :asian:
