<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - flash - 9.0 - main - 00000232.html</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T17:16:25</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000232.html#86324" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000232.html#75451" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000232.html#86324">
		<title>flash/9.0/main/00000232.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000232.html#86324</link>
		<description>The previous code must be saved in a  &quot;.as &quot; file and imported in a .fla file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Yo can try this ( in a .fla file)&lt;br /&gt;&lt;br /&gt;var loader:URLLoader;&lt;br /&gt;var exampleText:String = &quot; &lt;span class='titulo'&gt;This is a headline&lt;/span&gt;&lt;br&gt;&quot; + &lt;br /&gt;            &quot;&lt;p&gt;This is a line of text. &lt;span class='bluetext'&gt;&quot; +&lt;br /&gt;            &quot;This line of text is colored blue.&lt;/span&gt;&lt;/p&gt;&quot;;&lt;br /&gt;			&lt;br /&gt;	var req:URLRequest = new URLRequest(&quot;example.css&quot;);&lt;br /&gt;       &lt;br /&gt;    loader = new URLLoader();&lt;br /&gt;    loader.addEventListener(Event.COMPLETE, onCSSFileLoaded);&lt;br /&gt;    loader.load(req);&lt;br /&gt;	&lt;br /&gt;	function onCSSFileLoaded(event:Event):void&lt;br /&gt;        {&lt;br /&gt;            var sheet:StyleSheet = new StyleSheet();&lt;br /&gt;            sheet.parseCSS(loader.data);&lt;br /&gt;            mi_texto.styleSheet = sheet;&lt;br /&gt;            mi_texto.htmlText = exampleText;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You need a dynamic text named mi_texto and with the option &quot;render text as html&quot; enabled&lt;br /&gt;&lt;br /&gt;It works</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-08-01T08:21:19</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000232.html#75451">
		<title>flash/9.0/main/00000232.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000232.html#75451</link>
		<description>I've just tried using the code and I get an error saying packages cannot be &lt;br /&gt;nested. &lt;br /&gt;What am I doing wrong? i would have throught that the code is usable as is &lt;br /&gt;before I tried to customise it.</description>
		<dc:creator>Roger Pearson</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-10-23T01:25:08</dc:date>
	</item>
	</rdf:RDF>

