Skip to main content
Participant
September 9, 2011
Question

DisplayList and switching it all up or Z or what

  • September 9, 2011
  • 1 reply
  • 413 views

Yes or No

addChild(a);

a.addChild(square);

a.addChild(circle);

addChild(b);

Is there a way to change the displaylist where

a.square is 0

b is 1

a.circle is 2

All the displaylist changing stuff seems like I can only affect either

a and b

or

a.square and a.circle

but not put a.square behind b and a.circle infront of b...

Know what I mean?? sry im bad at forums -.-

Do I have to do it all differently? I tried changing the z's and that don't work either!

thx.

This topic has been closed for replies.

1 reply

relaxatraja
Inspiring
September 9, 2011

addChild(a);

its started from root.

a.addChild(square);

square level started from 0 within a.

Participant
September 9, 2011

So if I want to have 20 moons orbiting the Earth...

I can't have 1 moons class and 1 earth class

I will need 1 moon class and 1 earth class and use the moon class 20 times

Cause there's no way to make some in front and some behind it's an all or nothing per class? damnnn i hate starting over

relaxatraja
Inspiring
September 9, 2011

Yes you can, have a main movieclip earth and add 20 moon clips within earth by having the class name from the library.