Hello,

I want to display the component canvas01 or the component canvas02 on 
a canvas object who is in a mxml application file.
How can i do this ?

canvas01 :
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"; width="400" 
height="400">
        
        <mx:Label x="142" y="28" text="Affichage canvas 01"/>
        
</mx:Canvas>

canvas02 :
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"; width="400" 
height="400">
        
        <mx:Label x="142" y="28" text="Affichage canvas 02"/>
        
</mx:Canvas>

mxml application file :
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="absolute">
        
        <mx:Canvas id="canvas_father" x="120" y="112" width="400" 
height="400">
        </mx:Canvas>
        
        <mx:Button x="197" y="24" label="Display canvas01 on 
canvas_father"/>

        <mx:Button x="197" y="54" label="Display canvas02 on 
canvas_father"/>

</mx:Application>


Thanks for your answer.

Titipouns

Reply via email to