Bonjour à tous,

J'ai un site qui possède tout son contenu dans un fichier XML. La récupération de ce fichier ne pose pas de problème mais j'aimerais ensuite afficher le contenu dans un RichEditableText.

J'ai donc rajouté cette propriété à l'élément:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
textFlow="{TextConverter.importToFlow(myText, TextConverter.TEXT_LAYOUT_FORMAT)}"
Voici la déclaration de myText:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
 
[Bindable]
private var myText:XML;
Le problème est que ça n'affiche rien, pourtant myText devrait être au bon format, voici la valeur de myText:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
<flow>
			<flow:TextFlow xmlns:flow="http://ns.adobe.com/textLayout/2008" fontSize="14" textIndent="15" paragraphSpaceAfter="15" paddingTop="4" paddingLeft="4">
				<flow:p><flow:span>There are many </flow:span><flow:span fontStyle="italic">such</flow:span><flow:span> lime-kilns in that tract of country, for the purpose of burning the white marble which composes a large part of the substan</flow:span></flow:p>
				<flow:p><flow:span>The man who now watched the fire was of a different order, and troubled himself with no thoughts save the very few that were requisite to </flow:span></flow:p>
			</flow:TextFlow>
		</flow>
Ce bout de texte provient du site Adobe.

les balise <flow> </flow> sont les balises que j'ai rajouté moi même puisque ce contenu provient d'un fichier XML, je les ai mises pour trouver l'endroit où se trouve le texte à afficher. Mais est-ce que ça peut poser problème ?