<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flex Examples &#187; wordWrap</title>
	<atom:link href="http://blog.flexexamples.com/tag/wordwrap/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating a Flex Tree control with variable row heights</title>
		<link>http://blog.flexexamples.com/2007/11/29/creating-a-flex-tree-control-with-variable-row-heights/</link>
		<comments>http://blog.flexexamples.com/2007/11/29/creating-a-flex-tree-control-with-variable-row-heights/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 06:37:29 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Tree]]></category>
		<category><![CDATA[variableRowHeight]]></category>
		<category><![CDATA[wordWrap]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/11/29/creating-a-flex-tree-control-with-variable-row-heights/</guid>
		<description><![CDATA[<p>The following example shows you how you can create a Tree control in Flex with variable row heights by setting the variableRowHeight and wordWrap properties.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Tree_variableRowHeight_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2007/11/29/creating-a-flex-tree-control-with-variable-row-heights/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"&#62; &#60;mx:XML id="xmlDP"&#62; &#60;root&#62; &#60;para label="Paragraph 1"&#62; &#60;node label="Lorem ipsum [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows you how you can create a Tree control in Flex with variable row heights by setting the <code>variableRowHeight</code> and <code>wordWrap</code> properties.</p>
<p>Full code after the jump.</p>
<p><span id="more-343"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Tree_variableRowHeight_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/11/29/creating-a-flex-tree-control-with-variable-row-heights/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:XML id="xmlDP"&gt;
        &lt;root&gt;
            &lt;para label="Paragraph 1"&gt;
                &lt;node label="Lorem ipsum dolor sit amet, consectetuer adipiscing elit." /&gt;
                &lt;node label="Cras porttitor nunc a pede." /&gt;
                &lt;node label="Nulla ac magna non risus accumsan egestas." /&gt;
                &lt;node label="Aenean pretium porta felis." /&gt;
                &lt;node label="Sed massa." /&gt;
            &lt;/para&gt;
            &lt;para label="Paragraph 2"&gt;
                &lt;node label="Pellentesque pretium eros id odio tincidunt lobortis." /&gt;
                &lt;node label="Praesent vitae dolor eget nisl adipiscing pretium." /&gt;
                &lt;node label="Fusce nonummy dignissim risus." /&gt;
                &lt;node label="Nunc sodales, lectus vitae nonummy cursus, augue lectus auctor orci, vel aliquet enim neque vel eros." /&gt;
                &lt;node label="Donec laoreet euismod libero." /&gt;
                &lt;node label="Etiam ut lectus." /&gt;
            &lt;/para&gt;
            &lt;para label="Paragraph 3"&gt;
                &lt;node label="Maecenas ut nibh eu diam viverra suscipit." /&gt;
                &lt;node label="Pellentesque auctor, turpis vel lobortis suscipit, neque tortor tristique nibh, venenatis suscipit nisl nisl eget magna." /&gt;
                &lt;node label="Donec interdum." /&gt;
                &lt;node label="Praesent diam." /&gt;
            &lt;/para&gt;
            &lt;para label="Paragraph 4"&gt;
                &lt;node label="Proin nulla." /&gt;
                &lt;node label="Morbi tincidunt, sapien in sollicitudin venenatis, nibh tortor pretium ante, non pharetra urna dolor et libero." /&gt;
                &lt;node label="In malesuada risus at neque." /&gt;
            &lt;/para&gt;
        &lt;/root&gt;
    &lt;/mx:XML&gt;

    &lt;mx:Tree id="tree"
            dataProvider="{xmlDP}"
            labelField="@label"
            showRoot="false"
            variableRowHeight="true"
            wordWrap="true"
            alternatingItemColors="[#FFFFFF,#EEEEEE]"
            showScrollTips="true"
            width="300"
            rowCount="6" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Tree_variableRowHeight_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/Tree_variableRowHeight_test/bin/main.html" width="100%" height="200"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Creating a Flex Tree control with variable row heights on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/11/29/creating-a-flex-tree-control-with-variable-row-heights/',contentID: 'post-343',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'variableRowHeight,wordWrap',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/11/29/creating-a-flex-tree-control-with-variable-row-heights/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating multi-line list rows with variable row heights</title>
		<link>http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/</link>
		<comments>http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/#comments</comments>
		<pubDate>Sun, 28 Oct 2007 06:54:53 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[HTTPService]]></category>
		<category><![CDATA[List]]></category>
		<category><![CDATA[showBusyCursor]]></category>
		<category><![CDATA[variableRowHeight]]></category>
		<category><![CDATA[wordWrap]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/</guid>
		<description><![CDATA[<p>The following example shows how you can create multi-line rows with wrapping text and variable row heights with the Flex List control.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/List_variableRowHeight_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" creationComplete="init();"&#62; &#60;mx:Script&#62; &#60;![CDATA[ import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; private function init():void { commentsXML.send(); [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can create multi-line rows with wrapping text and variable row heights with the Flex List control.</p>
<p>Full code after the jump.</p>
<p><span id="more-254"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/List_variableRowHeight_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        creationComplete="init();"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.rpc.events.FaultEvent;
            import mx.rpc.events.ResultEvent;

            private function init():void {
                commentsXML.send();
            }

            private function commentsXML_result(evt:ResultEvent):void {
                var resultXML:XML = evt.currentTarget.lastResult;
                list.dataProvider = resultXML.channel.item;
            }

            private function commentsXML_fault(evt:FaultEvent):void {
                mx.controls.Alert.show("Unable to load XML:\n" + commentsXML.url, "ERROR");
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:HTTPService id="commentsXML"
            url="http://blog.flexexamples.com/comments/feed/"
            resultFormat="e4x"
            showBusyCursor="true"
            result="commentsXML_result(event);"
            fault="commentsXML_fault(event);" /&gt;

    &lt;mx:List id="list"
            variableRowHeight="true"
            wordWrap="true"
            labelField="title"
            width="250" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/List_variableRowHeight_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/List_variableRowHeight_test/bin/main.html" width="100%" height="250"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Creating multi-line list rows with variable row heights on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/',contentID: 'post-254',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'showBusyCursor,variableRowHeight,wordWrap',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/10/27/creating-multi-line-list-rows-with-variable-row-heights/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

