EaselJS: Draw images independent of Container zIndex

195 Views Asked by At

I have 2 containers, A which contains bitmaps A1 and A2; and container B which contains B1 and B2.

I want to draw them on the canvas in this order: A1, B1, A2, B2.

WHILE still having A1,A2 in A and B1,B2 in B because all the logic is built that way.

Is it possible to do it with built-in EaselJS functionalities?

The only way I found so far is to manually calculate absolute position and draw them with the conventional ctx.drawImage but it's slow and messy.

0

There are 0 best solutions below