Skip to main content
Participant
September 19, 2006
Question

Swapdepth inside movieclip(s)

  • September 19, 2006
  • 2 replies
  • 204 views
I have a question about using Swapdepth.

I have three objects. Simple buttons.
When i'm using SwapDepth it works fine. All objects response as wanted.

Question/Problem:
When i make one movieclip of all the buttons together, it won't work anymore.
Buttons stay at the same level. What must i do to get this work right?

Who can help me?

Greetings,

Peter Tollenaar
The Netherlands.
This topic has been closed for replies.

2 replies

Pemac30Author
Participant
September 20, 2006
Thanks Gunjan!
It worked fine.

Peter
Inspiring
September 19, 2006
Hi,
Peter,

Try it

as you said , I create a movie clip named a , then i create 3 more movie clips under the movie clip a named b, c and d and using this code on the seperate layer on the main time line . I found all are working properly .


a.b.onPress=function(){
this.swapDepths(this.getNextHighestDepth());


}
a.c.onPress=function(){
this.swapDepths(this.getNextHighestDepth());


}
a.d.onPress=function(){
this.swapDepths(this.getNextHighestDepth());


}

Thanks,
Gunjan