actionscript 3 - How to index child on top of parent's brother's children -
i'm having troubled indexing in actionscript 3.0. have 2 objects spawned on stage. 1 dock , other ball object. how works when ball object on dock, info window appears on screen. ball object has wrapper called container.
so objects are: mainclass, dock, container, ballobject, infowindow.
so front it's: mainclass > dock > infowindow > container > ballobject. dock , container added in main class, , infowindow added in dock class , ballobject container class.
what want achieve have infowindow on top of ballobjects, without dock being in front of container or ballobjects.
here image illustrate things out. d = dock c = container b = ballobject = infowindow
the image on left want achieve , 1 right have right now.
with hierarchy impossible, displaylist tree whole, , rendered depth first. so, put container under dock, , give child index less infopanel.
dock.addchild(container); dock.addchild.infopanel); container.addchild(ball); main.addchild(dock); this approach net requested goal. in case need add layer, between container , infopanel, add container between them, , add required stuff container.
Comments
Post a Comment