1 person found this helpful
All display objects in Flex are organized into Display List. You may think this like STACK, in which first added item appears on back and last appears on front.
Every DisplayObject has methods:
Also DisplayObjectContainer has:
In flex you usualy works with Canvas, HBox, VBox containers.
Reorganizing my containers seems to solved the render order problem.
In Flex there is a common task: layouting components. You takes controls (Button, Checkbox, Image, etc) and puting them into containers (Canvas, HBox, VBox). HBox and VBox arranges (layouts) its children horizontaly or verticaly respectively (avoiding overlapping). Canvas layout its own chidren accordigly its x, y OR top, left, right, bottom attributes.
I guess you added images directly into application (using this.addChild()) rather than adds them into Canvas. You code must looks like:
<mx:Image id="img1" source="file_name1.jpg" />
<mx:Image id="img2" source="file_name2.jpg" />
<mx:Image id="img3" source="file_name3.jpg" />