john100
04-27-2006, 04:39 AM
this seems like a simple question. But I cannot find where to set the z-index for canvas.
so like html page. I want to position one canvas over the top of other or vice versa.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute">
<mx:Canvas width="200" height="200" backgroundColor="#8000ff" x="214" y="24">
</mx:Canvas>
<mx:Canvas width="200" height="200" backgroundColor="#ff8080" x="422" y="24">
</mx:Canvas>
</mx:Application>
so like html page. I want to position one canvas over the top of other or vice versa.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute">
<mx:Canvas width="200" height="200" backgroundColor="#8000ff" x="214" y="24">
</mx:Canvas>
<mx:Canvas width="200" height="200" backgroundColor="#ff8080" x="422" y="24">
</mx:Canvas>
</mx:Application>