# Bring to front

**URL:** <https://forum.kirupa.com/t/bring-to-front/35400>\
**Category:** flash\
**Created:** [November 13, 2003, 3:06pm UTC](https://forum.kirupa.com/t/bring-to-front/35400 "2003-11-13T15:06:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![capt\_ace](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@capt\_ace](https://forum.kirupa.com/u/capt_ace)\
**Post date:** [November 13, 2003, 3:06pm UTC](https://forum.kirupa.com/t/bring-to-front/35400/1 "2003-11-13T15:06:29Z")

</div>

I’m not sure what it’s called in flash, but how do I bring a movie to the front. It must be similar to “Arrange” in photoshop or just about any DTP app.

Why?

I have three movieclips that overlap, I want to bring each one to the front on mouse over. I know how to the mouseover bit, I just don’t know which property to use… me thinks…

Ta

---

<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, 2003, 3:11pm UTC](https://forum.kirupa.com/t/bring-to-front/35400/2 "2003-11-13T15:11:00Z")

</div>

You must put each movie inside a movie clip. And you must do a motion tween between the normal movie and movie at the front.  
And then you must put stop at the 1st frame and at the last frame. Then you must put that movie clip on the scene and put this action on that movie clip you had just created:

on (rollOver) {  
gotoAndPlay(2);  
}

If it is confusing, why dont you send the FLA?

---

<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, 2003, 3:29pm UTC](https://forum.kirupa.com/t/bring-to-front/35400/3 "2003-11-13T15:29:52Z")

</div>

you can do it with AS like this…  
[AS]

on(rollOver) {  
\_root.x +=2;  
\_root.movieClipName.swapDepths(\_root.x);  
// what ever else you want to do on roll over…  
}

[/AS]

---

<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, 2003, 3:31pm UTC](https://forum.kirupa.com/t/bring-to-front/35400/4 "2003-11-13T15:31:14Z")

</div>

I’m not making myself very clear…

In the attached movie, I want each clip to be fully visable (Brought to Front) when mouseovered.

---

<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, 2003, 9:39pm UTC](https://forum.kirupa.com/t/bring-to-front/35400/5 "2003-11-13T21:39:37Z")

</div>

sorry i still couldnt get it. Is what you want, sth like 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:** [November 13, 2003, 9:41pm UTC](https://forum.kirupa.com/t/bring-to-front/35400/6 "2003-11-13T21:41:12Z")

</div>

Here it is:  
Is this what you want?
