Forum Topic: Bringing a movie clip to top

(73 views • 4 replies)

This topic is 1 page long.

<< < > >>
Expressionless

kokonut10

Reply To Post Reply & Quote

Posted at: 10/29/09 04:19 AM

kokonut10 EVIL LEVEL 26

Sign-Up: 06/16/07

Posts: 668

How would I make a movie clip stay on top of my stage? I have several other movie clips, all draggable and once clicked are brought to the top, and I have another movie clip play over them, but the last dragged movie clip always appears over it. Does anyone know how to prevent this?


None

kizza0

Reply To Post Reply & Quote

Posted at: 10/29/09 04:37 AM

kizza0 NEUTRAL LEVEL 08

Sign-Up: 10/13/07

Posts: 276

Well if your using as2.0 you can jsut set its depth to a KABILLION.
Or in as3.0 Id suggest you search around for depth sorting tutorials and find one that works for you.

BOOM HEADSHOT

BBS Signature

None

the1manwiththeplan

Reply To Post Reply & Quote

Posted at: 10/29/09 04:42 AM

the1manwiththeplan LIGHT LEVEL 14

Sign-Up: 06/10/08

Posts: 355

What AS have you got on your dragable objects to bring them to the front when clicked?

I went outside once the graphics were awesome but the gameplay was shit

BBS Signature

None

Paranoia

Reply To Post Reply & Quote

Posted at: 10/29/09 04:44 AM

Paranoia DARK LEVEL 34

Sign-Up: 04/22/05

Posts: 9,697

There's probably a better way to organise stuff than just swapping everything's depth. What code are you using? I couldn't reproduce your problem using normal dragging methods :/

BBS Signature

None

kokonut10

Reply To Post Reply & Quote

Posted at: 10/29/09 06:42 AM

kokonut10 EVIL LEVEL 26

Sign-Up: 06/16/07

Posts: 668

At 10/29/09 04:44 AM, Paranoia wrote: There's probably a better way to organise stuff than just swapping everything's depth. What code are you using? I couldn't reproduce your problem using normal dragging methods :/

I'm using:

on (press) {
startDrag (this);
this.swapDepths(1);
}
on (release) {
stopDrag();
}


All times are Eastern Standard Time (GMT -5) | Current Time: 03:38 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!