# Levels without loading

**URL:** <https://forum.kirupa.com/t/levels-without-loading/18624>\
**Category:** Uncategorized\
**Created:** [April 18, 2003, 6:52pm UTC](https://forum.kirupa.com/t/levels-without-loading/18624 "2003-04-18T18:52:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julz](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@Julz](https://forum.kirupa.com/u/Julz)\
**Post date:** [April 18, 2003, 6:52pm UTC](https://forum.kirupa.com/t/levels-without-loading/18624/1 "2003-04-18T18:52:36Z")

</div>

This is probably a stupid question, but…  
is it possible to change the \_level of a movie clip or button created within a main movie, instead of having to load it in from an external movie to set the \_level?

---

<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:** [April 18, 2003, 7:02pm UTC](https://forum.kirupa.com/t/levels-without-loading/18624/2 "2003-04-18T19:02:03Z")

</div>

nope… i don’t think so. :-\

---

<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:** [April 18, 2003, 7:16pm UTC](https://forum.kirupa.com/t/levels-without-loading/18624/3 "2003-04-18T19:16:15Z")

</div>

Kax said no, so maybe it’s stupid what I’m going to say… =)

But don’t you mean the swapDepths() method??

Taken from the AS dictionary:

> 

MovieClip.swapDepths

Availability

Flash Player 5.

Usage

myMovieClip.swapDepths(depth)  
myMovieClip.swapDepths(target)  
Parameters

target The movie clip instance whose depth is swapped by the instance specified in myMovieClip. Both instances must have the same parent movie clip.

depth A number specifying the depth level where MovieClip is to be placed.

Returns

Nothing.

Description

Method; swaps the stacking, or z order (depth level), of the specified instance (MovieClip) with the movie specified by the target parameter, or with the movie that currently occupies the depth level specified in the depth parameter. Both movies must have the same parent movie clip. Swapping the depth level of movie clips has the effect of moving one movie in front of or behind the other. If a movie is tweening when this method is called, the tweening is stopped.

---

<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:** [April 18, 2003, 7:32pm UTC](https://forum.kirupa.com/t/levels-without-loading/18624/4 "2003-04-18T19:32:48Z")

</div>

well… he said level so i said **no**. 😛  
but yeah, maybe he meant to say depth, not level. :-\

---

<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:** [April 18, 2003, 8:09pm UTC](https://forum.kirupa.com/t/levels-without-loading/18624/5 "2003-04-18T20:09:40Z")

</div>

_gets very confused after reading the above_

swapDepths() sets the depth **level** … So isn’t it kinda the same thing??

---

<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:** [April 18, 2003, 8:26pm UTC](https://forum.kirupa.com/t/levels-without-loading/18624/6 "2003-04-18T20:26:41Z")

</div>

well… talking about flash, if you say level, i’d interpret it as a **level** not depth, so i assume i’m right.

besides he actually said **\_level**. 😉

---

<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:** [April 18, 2003, 8:42pm UTC](https://forum.kirupa.com/t/levels-without-loading/18624/7 "2003-04-18T20:42:39Z")

</div>

lol. can’t argue with that 🙂
