J'ai une application Flex qui fait appel à 2 composants MXML :
CODE
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:test="vues.*" layout="absolute">
<mx:VBox x="10" y="10" width="100%" height="100%">
<test:vueSaisie>
</test:vueSaisie>
<test:vueAffichage>
</test:vueAffichage>
</mx:VBox>
</mx:Application>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:test="vues.*" layout="absolute">
<mx:VBox x="10" y="10" width="100%" height="100%">
<test:vueSaisie>
</test:vueSaisie>
<test:vueAffichage>
</test:vueAffichage>
</mx:VBox>
</mx:Application>
Dans le premier composant, j'ai un TextInput et un Button :
CODE
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
<mx:Script>
<![CDATA[
]]>
</mx:Script>
<mx:Form x="10" y="10">
<mx:FormItem label="Saisie :">
<mx:TextInput id="txtSaisie"/>
</mx:FormItem>
<mx:Button label="afficher" id="btAfficher" click=""/>
</mx:Form>
</mx:Canvas>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
<mx:Script>
<![CDATA[
]]>
</mx:Script>
<mx:Form x="10" y="10">
<mx:FormItem label="Saisie :">
<mx:TextInput id="txtSaisie"/>
</mx:FormItem>
<mx:Button label="afficher" id="btAfficher" click=""/>
</mx:Form>
</mx:Canvas>
Dans le second composant, j'ai un TextArea :
CODE
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
<mx:TextArea x="10" y="10" width="335" height="258" id="txtAffichage"/>
</mx:Canvas>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
<mx:TextArea x="10" y="10" width="335" height="258" id="txtAffichage"/>
</mx:Canvas>
Lorsque je clique sur le bouton, je souhaite renseigner le TextArea avec ce que j'ai saisi dans le TextInput et là je bloque.
Merci d'avance pour votre aide.