Depth Control
In modular you can control the z order or depth by the order of the module nodes in the boot.xml. So lets have a look on this simple configuration:
<?xml version="1.0" encoding="UTF-8"?> <ModularApplication> <Page> <Assets> <Library path="swf/ProjectLibrary.swf" /> </Assets> <Modules> <Module class="modules.Text" id="myText" /> <Module class="modules.Image" id="myImage" /> </Modules> </Page> </ModularApplication>
Here the module myText is on top of the myImage module. If we change order like this:
<Modules> <Module class="modules.Image" id="myImage" /> <Module class="modules.Text" id="myText" /> </Modules>
We switch the order and the myImage module is on top.
Comments