<?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>franto.com &#187; Flex Tips</title>
	<atom:link href="http://franto.com/tag/flex-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://franto.com</link>
	<description></description>
	<lastBuildDate>Wed, 09 May 2012 19:38:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Unable to export SWC oem</title>
		<link>http://franto.com/unable-to-export-swc-oem/</link>
		<comments>http://franto.com/unable-to-export-swc-oem/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 08:00:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Tips]]></category>
		<category><![CDATA[Error]]></category>

		<guid isPermaLink="false">http://franto.com/?p=1026</guid>
		<description><![CDATA[I have few times lately this error in Flex Builder and there were at least 2 cases, which cause this error to happen. So maybe it will help you to find your problem. Some file (in my case .flexLibProperties) has SVN conflicts, so you need to resolve conflicts and merge them to solve this &#8220;Unable [...]]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for flex-tips</h3><ol><li><a href='http://franto.com/problem-with-xml-attributes-in-as3-0/' title='Problem with XML attributes in AS3.0'>Problem with XML attributes in AS3.0</a></li><li>Unable to export SWC oem</li><li><a href='http://franto.com/numeric-sorting-of-flex-datagridcolumn/' title='Numeric sorting of Flex DataGridColumn'>Numeric sorting of Flex DataGridColumn</a></li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share data-url="http://franto.com/unable-to-export-swc-oem/" data-text="Unable to export SWC oem"data-count="vertical" data-lang="en" data-related="Error,Flex,Flex+Tips""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>I have few times lately this error in Flex Builder and there were at least 2 cases, which cause this error to happen. So maybe it will help you to find your problem.</p>
<ul>
<li>Some file (in my case .flexLibProperties) has SVN conflicts, so you need to resolve conflicts and merge them to solve this &#8220;<strong>Unable to export SWC oem</strong>&#8221; error</li>
<li>In your library project there are some assets, which are not checked in project Properties/Flex Library Build Path/Assets Tab</li>
</ul>
<p>If you know about other case, which can cause &#8220;<strong>Unable to export SWC oem</strong>&#8221; error, please let me know in comments and I will add it here to help other people with their development. Thank you</p>
 <div class='series_links'><a href='http://franto.com/problem-with-xml-attributes-in-as3-0/' title='Problem with XML attributes in AS3.0'>Previous in series</a> <a href='http://franto.com/numeric-sorting-of-flex-datagridcolumn/' title='Numeric sorting of Flex DataGridColumn'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/unable-to-export-swc-oem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FlexTip: Add Thumbs to Mx:Slider programatically</title>
		<link>http://franto.com/add-thumbs-to-mxslider-programatically/</link>
		<comments>http://franto.com/add-thumbs-to-mxslider-programatically/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 12:16:07 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Flex Tips]]></category>
		<category><![CDATA[Flexets]]></category>
		<category><![CDATA[Component]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=673</guid>
		<description><![CDATA[I have some new Flex Tip for you. Maybe you have found it already if you have tried add new thumbs to Mx:Slider (HSlider, VSlider) programatically. There can be various &#8220;small&#8221; problems. Or maybe there is just another way What I&#8217;ve tried is increase thumbCount property and add new value to values property. But there [...]]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for flex-tips</h3><ol><li><a href='http://franto.com/flextips/' title='FlexTips'>FlexTips</a></li><li><a href='http://franto.com/flextips-mxtext-vs-mxtextarea/' title='FlexTip: mx:Text vs. mx:TextArea'>FlexTip: mx:Text vs. mx:TextArea</a></li><li><a href='http://franto.com/flextips-xmlsocket-connect-after-disconnect-from-server/' title='FlexTip: XMLSocket connect() after disconnect from server'>FlexTip: XMLSocket connect() after disconnect from server</a></li><li><a href='http://franto.com/flextips-problem-with-masks-and-scalable-flash/' title='FlexTip: Problem with masks and scalable Flash'>FlexTip: Problem with masks and scalable Flash</a></li><li><a href='http://franto.com/flextips-how-to-add-bitmap-to-uicomponent/' title='FlexTips: How to add Bitmap to UIComponent'>FlexTips: How to add Bitmap to UIComponent</a></li><li><a href='http://franto.com/flextips-stop-displaying-focus/' title='FlexTip &#8211; Stop displaying Focus'>FlexTip &#8211; Stop displaying Focus</a></li><li><a href='http://franto.com/preventing-checkbox-selection-with-keyspace/' title='FlexTip: Preventing CheckBox selection with Key.SPACE'>FlexTip: Preventing CheckBox selection with Key.SPACE</a></li><li><a href='http://franto.com/flextip-wordwrap-for-mxtext/' title='FlexTip: WordWrap for mx:Text'>FlexTip: WordWrap for mx:Text</a></li><li>FlexTip: Add Thumbs to Mx:Slider programatically</li><li><a href='http://franto.com/as3-conditional-breakpoint-enterdebugger/' title='AS3 Conditional Breakpoint &#8211; enterDebugger()'>AS3 Conditional Breakpoint &#8211; enterDebugger()</a></li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share data-url="http://franto.com/add-thumbs-to-mxslider-programatically/" data-text="FlexTip: Add Thumbs to Mx:Slider programatically"data-count="vertical" data-lang="en" data-related="Component,Flex,Flex+Tips""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>I have some new Flex Tip for you. Maybe you have found it already if you have tried add new thumbs to Mx:Slider (HSlider, VSlider) programatically. There can be various &#8220;small&#8221; problems. Or maybe there is just another way <img src='http://franto.com/blog2/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>What I&#8217;ve tried is increase <strong>thumbCount</strong> property and add new value to <strong>values </strong>property. But there can be problems, if you did not set <strong>snapInterval</strong> property or how you insert new value.</p>
<p>I have created examples with 3 different ways of adding new thumbs to the horizontal slider. There can be more, but I want to show you just these 3 different way of how to do it.</p>
<p>In all examples sliders starting value as follows:</p>
<ul>
<li>minimum = 0</li>
<li>maximum = 0</li>
<li>thumbCount = 2</li>
<li>values = [0,1]</li>
</ul>
<p>I&#8217;m catching MouseEvent.CLICK event on these sliders, and add new thumb. After click you can check last added value, and values property of each slider for you control, what&#8217;s inside. Let&#8217;s try example and after I will explain difference in these 3 different ways fo adding new thumb to slider.</p>
<p><object id="SliderTest" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="600" height="450" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="high" /><param name="bgcolor" value="#222222" /><param name="allowScriptAccess" value="sameDomain" /><param name="src" value="http://www.franto.com/blog2/wp-content/uploads/examples/slidertest/SliderTest.swf" /><param name="name" value="SliderTest" /><param name="align" value="middle" /><embed id="SliderTest" type="application/x-shockwave-flash" width="600" height="450" src="http://www.franto.com/blog2/wp-content/uploads/examples/slidertest/SliderTest.swf" align="middle" name="SliderTest" allowscriptaccess="sameDomain" bgcolor="#222222" quality="high"></embed></object></p>
<p>The first example I&#8217;m adding new value to the values property, which is Array by simple slider.values.push(newValue). Problem is that, when you push value e.g. 0.5 to array [0,1], values will be [0,1,0.5] it&#8217;s not sorted (slider has not sorted it by itself). It&#8217;s interesting how slider recompute it&#8217;s values. Just try it in example</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> handleAddWrongPoint<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> newValue<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = idWrongSlider<span style="color: #000066; font-weight: bold;">.</span>minimum <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">localX</span> <span style="color: #000066; font-weight: bold;">/</span> idWrongSlider<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000;">&#40;</span>idWrongSlider<span style="color: #000066; font-weight: bold;">.</span>maximum <span style="color: #000066; font-weight: bold;">-</span> idWrongSlider<span style="color: #000066; font-weight: bold;">.</span>minimum<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	newValue = <span style="color: #004993;">int</span><span style="color: #000000;">&#40;</span>newValue <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">!</span><span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">target</span> <span style="color: #0033ff; font-weight: bold;">is</span> SliderThumb<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		latestWrong = newValue<span style="color: #000066; font-weight: bold;">;</span>
		idWrongSlider<span style="color: #000066; font-weight: bold;">.</span>thumbCount<span style="color: #000066; font-weight: bold;">++;</span>
		idWrongSlider<span style="color: #000066; font-weight: bold;">.</span>values<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">push</span><span style="color: #000000;">&#40;</span>newValue<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		idWrongSlider<span style="color: #000066; font-weight: bold;">.</span>invalidateProperties<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">'Wrong: '</span> <span style="color: #000066; font-weight: bold;">+</span> e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">localX</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">&quot; , new: &quot;</span> <span style="color: #000066; font-weight: bold;">+</span> newValue <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">&quot; values: &quot;</span> <span style="color: #000066; font-weight: bold;">+</span> idWrongSlider<span style="color: #000066; font-weight: bold;">.</span>values<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		update<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>In second example there is no snapInterval set, and it seems, that causes more interesting problems. Values are now greater than maximum (1), try add few thumbs by clicking on 2nd slider and you can end up with such values property [0,1,2,3,4,5,6,7,0.6]. Really don&#8217;t why <img src='http://franto.com/blog2/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> handleAddWrongPoint2<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> newValue<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = idWrongSlider2<span style="color: #000066; font-weight: bold;">.</span>minimum <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">localX</span> <span style="color: #000066; font-weight: bold;">/</span> idWrongSlider2<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000;">&#40;</span>idWrongSlider2<span style="color: #000066; font-weight: bold;">.</span>maximum <span style="color: #000066; font-weight: bold;">-</span> idWrongSlider2<span style="color: #000066; font-weight: bold;">.</span>minimum<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	newValue = <span style="color: #004993;">int</span><span style="color: #000000;">&#40;</span>newValue <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">!</span><span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">target</span> <span style="color: #0033ff; font-weight: bold;">is</span> SliderThumb<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		latestWrong2 = newValue<span style="color: #000066; font-weight: bold;">;</span>
		idWrongSlider2<span style="color: #000066; font-weight: bold;">.</span>thumbCount<span style="color: #000066; font-weight: bold;">++;</span>
		idWrongSlider2<span style="color: #000066; font-weight: bold;">.</span>values<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">push</span><span style="color: #000000;">&#40;</span>newValue<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		idWrongSlider2<span style="color: #000066; font-weight: bold;">.</span>invalidateProperties<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">'Wrong: '</span> <span style="color: #000066; font-weight: bold;">+</span> e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">localX</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">&quot; , new: &quot;</span> <span style="color: #000066; font-weight: bold;">+</span> newValue <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">&quot; values: &quot;</span> <span style="color: #000066; font-weight: bold;">+</span> idWrongSlider2<span style="color: #000066; font-weight: bold;">.</span>values<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		update<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>In 3rd examples all is ok, because I&#8217;ve set snapInterval property to 0.01 and I&#8217;m adding new values correctly sorted</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> handleAddCorrectPoint<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
    <span style="color: #6699cc; font-weight: bold;">var</span> newValue<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = idCorrectSlider<span style="color: #000066; font-weight: bold;">.</span>minimum <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">localX</span> <span style="color: #000066; font-weight: bold;">/</span> idCorrectSlider<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000;">&#40;</span>idCorrectSlider<span style="color: #000066; font-weight: bold;">.</span>maximum <span style="color: #000066; font-weight: bold;">-</span> idCorrectSlider<span style="color: #000066; font-weight: bold;">.</span>minimum<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
    newValue = <span style="color: #004993;">int</span><span style="color: #000000;">&#40;</span>newValue <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">!</span><span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">target</span> <span style="color: #0033ff; font-weight: bold;">is</span> SliderThumb<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        latestCorrect = newValue<span style="color: #000066; font-weight: bold;">;</span>
        idCorrectSlider<span style="color: #000066; font-weight: bold;">.</span>thumbCount<span style="color: #000066; font-weight: bold;">++;</span>
        <span style="color: #6699cc; font-weight: bold;">var</span> arr<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = idCorrectSlider<span style="color: #000066; font-weight: bold;">.</span>values<span style="color: #000066; font-weight: bold;">;</span>
        arr<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">push</span><span style="color: #000000;">&#40;</span>newValue<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
        idCorrectSlider<span style="color: #000066; font-weight: bold;">.</span>values = arr<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">sort</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
        idCorrectSlider<span style="color: #000066; font-weight: bold;">.</span>invalidateProperties<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
        <span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">'Correct: '</span> <span style="color: #000066; font-weight: bold;">+</span> e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">localX</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">&quot; , new: &quot;</span> <span style="color: #000066; font-weight: bold;">+</span> newValue <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">&quot; values: &quot;</span> <span style="color: #000066; font-weight: bold;">+</span> idCorrectSlider<span style="color: #000066; font-weight: bold;">.</span>values<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
        update<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>Full source to this examples is included in <strong>Download Section</strong> (you will see it just as subscribed member) of our <strong><a href="http://www.flexets.com/forum-info/coaching-forum">Coaching Program</a> <a href="http://www.flexets.com/forum/">Forum</a></strong> on <a href="http://www.flexets.com">Flexets.com</a> (My own company).</p>
 <div class='series_links'><a href='http://franto.com/flextip-wordwrap-for-mxtext/' title='FlexTip: WordWrap for mx:Text'>Previous in series</a> <a href='http://franto.com/as3-conditional-breakpoint-enterdebugger/' title='AS3 Conditional Breakpoint &#8211; enterDebugger()'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/add-thumbs-to-mxslider-programatically/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FlexTip: Preventing CheckBox selection with Key.SPACE</title>
		<link>http://franto.com/preventing-checkbox-selection-with-keyspace/</link>
		<comments>http://franto.com/preventing-checkbox-selection-with-keyspace/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 08:51:31 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Flex Tips]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=518</guid>
		<description><![CDATA[This is quick Flex Tip. If you do not need or do not want change CheckBox selection with space key, you can set mouseFocusEnabled to false. &#160; If you know about any other solutions, let us know.]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for flex-tips</h3><ol><li><a href='http://franto.com/flextips/' title='FlexTips'>FlexTips</a></li><li><a href='http://franto.com/flextips-mxtext-vs-mxtextarea/' title='FlexTip: mx:Text vs. mx:TextArea'>FlexTip: mx:Text vs. mx:TextArea</a></li><li><a href='http://franto.com/flextips-xmlsocket-connect-after-disconnect-from-server/' title='FlexTip: XMLSocket connect() after disconnect from server'>FlexTip: XMLSocket connect() after disconnect from server</a></li><li><a href='http://franto.com/flextips-problem-with-masks-and-scalable-flash/' title='FlexTip: Problem with masks and scalable Flash'>FlexTip: Problem with masks and scalable Flash</a></li><li><a href='http://franto.com/flextips-how-to-add-bitmap-to-uicomponent/' title='FlexTips: How to add Bitmap to UIComponent'>FlexTips: How to add Bitmap to UIComponent</a></li><li><a href='http://franto.com/flextips-stop-displaying-focus/' title='FlexTip &#8211; Stop displaying Focus'>FlexTip &#8211; Stop displaying Focus</a></li><li>FlexTip: Preventing CheckBox selection with Key.SPACE</li><li><a href='http://franto.com/flextip-wordwrap-for-mxtext/' title='FlexTip: WordWrap for mx:Text'>FlexTip: WordWrap for mx:Text</a></li><li><a href='http://franto.com/add-thumbs-to-mxslider-programatically/' title='FlexTip: Add Thumbs to Mx:Slider programatically'>FlexTip: Add Thumbs to Mx:Slider programatically</a></li><li><a href='http://franto.com/as3-conditional-breakpoint-enterdebugger/' title='AS3 Conditional Breakpoint &#8211; enterDebugger()'>AS3 Conditional Breakpoint &#8211; enterDebugger()</a></li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share data-url="http://franto.com/preventing-checkbox-selection-with-keyspace/" data-text="FlexTip: Preventing CheckBox selection with Key.SPACE"data-count="vertical" data-lang="en" data-related="Flex,Flex+Tips,Tip""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>This is quick Flex Tip. If you do not need or do not want change CheckBox selection with space key, you can set mouseFocusEnabled to false.</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;">&nbsp;</pre></div></div>

<p>If you know about any other solutions, let us know.</p>
 <div class='series_links'><a href='http://franto.com/flextips-stop-displaying-focus/' title='FlexTip &#8211; Stop displaying Focus'>Previous in series</a> <a href='http://franto.com/flextip-wordwrap-for-mxtext/' title='FlexTip: WordWrap for mx:Text'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/preventing-checkbox-selection-with-keyspace/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FlexTip &#8211; Stop displaying Focus</title>
		<link>http://franto.com/flextips-stop-displaying-focus/</link>
		<comments>http://franto.com/flextips-stop-displaying-focus/#comments</comments>
		<pubDate>Thu, 29 May 2008 13:45:47 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Flex Tips]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.franto.com/blog2/flex-tip-stop-displaying-focus</guid>
		<description><![CDATA[Here is quick Flex Tip. If you don&#8217;t want to display focus rectangle on pressing TAB key, you should use focusEnabled = false; It&#8217;s quick solution for 1 component, but if you want disable focus for all components in your application just use focusManager.deactivate(); That&#8217;s all, hope it helps to anyone&#8230; New: Thanks to Marc [...]]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for flex-tips</h3><ol><li><a href='http://franto.com/flextips/' title='FlexTips'>FlexTips</a></li><li><a href='http://franto.com/flextips-mxtext-vs-mxtextarea/' title='FlexTip: mx:Text vs. mx:TextArea'>FlexTip: mx:Text vs. mx:TextArea</a></li><li><a href='http://franto.com/flextips-xmlsocket-connect-after-disconnect-from-server/' title='FlexTip: XMLSocket connect() after disconnect from server'>FlexTip: XMLSocket connect() after disconnect from server</a></li><li><a href='http://franto.com/flextips-problem-with-masks-and-scalable-flash/' title='FlexTip: Problem with masks and scalable Flash'>FlexTip: Problem with masks and scalable Flash</a></li><li><a href='http://franto.com/flextips-how-to-add-bitmap-to-uicomponent/' title='FlexTips: How to add Bitmap to UIComponent'>FlexTips: How to add Bitmap to UIComponent</a></li><li>FlexTip &#8211; Stop displaying Focus</li><li><a href='http://franto.com/preventing-checkbox-selection-with-keyspace/' title='FlexTip: Preventing CheckBox selection with Key.SPACE'>FlexTip: Preventing CheckBox selection with Key.SPACE</a></li><li><a href='http://franto.com/flextip-wordwrap-for-mxtext/' title='FlexTip: WordWrap for mx:Text'>FlexTip: WordWrap for mx:Text</a></li><li><a href='http://franto.com/add-thumbs-to-mxslider-programatically/' title='FlexTip: Add Thumbs to Mx:Slider programatically'>FlexTip: Add Thumbs to Mx:Slider programatically</a></li><li><a href='http://franto.com/as3-conditional-breakpoint-enterdebugger/' title='AS3 Conditional Breakpoint &#8211; enterDebugger()'>AS3 Conditional Breakpoint &#8211; enterDebugger()</a></li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share data-url="http://franto.com/flextips-stop-displaying-focus/" data-text="FlexTip &#038;%238211; Stop displaying Focus"data-count="vertical" data-lang="en" data-related="Flex,Flex+Tips""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>Here is quick Flex Tip. If you don&#8217;t want to display focus rectangle on pressing TAB key, you should use <strong><a href="http://livedocs.adobe.com/flex/201/langref/mx/core/UIComponent.html#focusEnabled">focusEnabled = false</a></strong>;<br />
It&#8217;s quick solution for 1 component, but if you want disable focus for all components in your application just use <strong><a href="http://livedocs.adobe.com/flex/201/langref/mx/managers/FocusManager.html#deactivate()">focusManager.deactivate();</a></strong></p>
<p>That&#8217;s all, hope it helps to anyone&#8230;</p>
<div style="position:relative;background:#550000;border:#aa0000 solid 3px;padding:10px 5px 5px 10px;color:#ffffff"><strong>New:</strong> Thanks to <strong>Marc Hughes</strong> for pointing this out:</p>
<p>Instead of <strong><a href="http://livedocs.adobe.com/flex/201/langref/mx/managers/FocusManager.html#deactivate()">focusManager.deactivate();</a></strong> use <strong><a href="http://livedocs.adobe.com/flex/201/langref/mx/managers/FocusManager.html#showFocusIndicator()">focusManager.showFocusIndicator=false;</a></strong></div>
 <div class='series_links'><a href='http://franto.com/flextips-how-to-add-bitmap-to-uicomponent/' title='FlexTips: How to add Bitmap to UIComponent'>Previous in series</a> <a href='http://franto.com/preventing-checkbox-selection-with-keyspace/' title='FlexTip: Preventing CheckBox selection with Key.SPACE'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/flextips-stop-displaying-focus/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>FlexTips: How to add Bitmap to UIComponent</title>
		<link>http://franto.com/flextips-how-to-add-bitmap-to-uicomponent/</link>
		<comments>http://franto.com/flextips-how-to-add-bitmap-to-uicomponent/#comments</comments>
		<pubDate>Sun, 29 Jul 2007 14:12:30 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Flex Tips]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.franto.com/blog2/flextips-how-to-add-bitmap-to-uicomponent</guid>
		<description><![CDATA[I didn&#8217;t know it, but here is solution. Best UIComponent for Bitmap is mx:Image (no surprise), You can just write: &#60;mx :Image creationComplete=&#8221;(event.currentTarget as Image).source = new Bitmap( bitmapData)&#8221;/&#62; So for mx:Image except source=&#8221;path&#8221; you can add reference to Bitmap as well. Enjoy]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for flex-tips</h3><ol><li><a href='http://franto.com/flextips/' title='FlexTips'>FlexTips</a></li><li><a href='http://franto.com/flextips-mxtext-vs-mxtextarea/' title='FlexTip: mx:Text vs. mx:TextArea'>FlexTip: mx:Text vs. mx:TextArea</a></li><li><a href='http://franto.com/flextips-xmlsocket-connect-after-disconnect-from-server/' title='FlexTip: XMLSocket connect() after disconnect from server'>FlexTip: XMLSocket connect() after disconnect from server</a></li><li><a href='http://franto.com/flextips-problem-with-masks-and-scalable-flash/' title='FlexTip: Problem with masks and scalable Flash'>FlexTip: Problem with masks and scalable Flash</a></li><li>FlexTips: How to add Bitmap to UIComponent</li><li><a href='http://franto.com/flextips-stop-displaying-focus/' title='FlexTip &#8211; Stop displaying Focus'>FlexTip &#8211; Stop displaying Focus</a></li><li><a href='http://franto.com/preventing-checkbox-selection-with-keyspace/' title='FlexTip: Preventing CheckBox selection with Key.SPACE'>FlexTip: Preventing CheckBox selection with Key.SPACE</a></li><li><a href='http://franto.com/flextip-wordwrap-for-mxtext/' title='FlexTip: WordWrap for mx:Text'>FlexTip: WordWrap for mx:Text</a></li><li><a href='http://franto.com/add-thumbs-to-mxslider-programatically/' title='FlexTip: Add Thumbs to Mx:Slider programatically'>FlexTip: Add Thumbs to Mx:Slider programatically</a></li><li><a href='http://franto.com/as3-conditional-breakpoint-enterdebugger/' title='AS3 Conditional Breakpoint &#8211; enterDebugger()'>AS3 Conditional Breakpoint &#8211; enterDebugger()</a></li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share data-url="http://franto.com/flextips-how-to-add-bitmap-to-uicomponent/" data-text="FlexTips: How to add Bitmap to UIComponent"data-count="vertical" data-lang="en" data-related="Flex,Flex+Tips""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>I didn&#8217;t know it, but here is solution. Best UIComponent for Bitmap is mx:Image <img src='http://franto.com/blog2/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (no surprise), You can just write:</p>
<p><span style="color:white">&lt;mx :Image creationComplete=&#8221;(event.currentTarget as Image).source = new Bitmap( bitmapData)&#8221;/&gt;</span></p>
<p>So for mx:Image except source=&#8221;path&#8221; you can add reference to Bitmap as well.<br />
Enjoy</p>
 <div class='series_links'><a href='http://franto.com/flextips-problem-with-masks-and-scalable-flash/' title='FlexTip: Problem with masks and scalable Flash'>Previous in series</a> <a href='http://franto.com/flextips-stop-displaying-focus/' title='FlexTip &#8211; Stop displaying Focus'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/flextips-how-to-add-bitmap-to-uicomponent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FlexTip: Problem with masks and scalable Flash</title>
		<link>http://franto.com/flextips-problem-with-masks-and-scalable-flash/</link>
		<comments>http://franto.com/flextips-problem-with-masks-and-scalable-flash/#comments</comments>
		<pubDate>Fri, 27 Jul 2007 06:39:35 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Flex Tips]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.franto.com/blog2/flextips-problem-with-masks-and-scalable-flash</guid>
		<description><![CDATA[This may be useful for someone who does not read Flex documentation in more detail. When you have content which is masked and you allow scale for your application, mask will not scale if it is not added to display list (it&#8217;s written in documentation ). So if you have such problem, add you mask [...]]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for flex-tips</h3><ol><li><a href='http://franto.com/flextips/' title='FlexTips'>FlexTips</a></li><li><a href='http://franto.com/flextips-mxtext-vs-mxtextarea/' title='FlexTip: mx:Text vs. mx:TextArea'>FlexTip: mx:Text vs. mx:TextArea</a></li><li><a href='http://franto.com/flextips-xmlsocket-connect-after-disconnect-from-server/' title='FlexTip: XMLSocket connect() after disconnect from server'>FlexTip: XMLSocket connect() after disconnect from server</a></li><li>FlexTip: Problem with masks and scalable Flash</li><li><a href='http://franto.com/flextips-how-to-add-bitmap-to-uicomponent/' title='FlexTips: How to add Bitmap to UIComponent'>FlexTips: How to add Bitmap to UIComponent</a></li><li><a href='http://franto.com/flextips-stop-displaying-focus/' title='FlexTip &#8211; Stop displaying Focus'>FlexTip &#8211; Stop displaying Focus</a></li><li><a href='http://franto.com/preventing-checkbox-selection-with-keyspace/' title='FlexTip: Preventing CheckBox selection with Key.SPACE'>FlexTip: Preventing CheckBox selection with Key.SPACE</a></li><li><a href='http://franto.com/flextip-wordwrap-for-mxtext/' title='FlexTip: WordWrap for mx:Text'>FlexTip: WordWrap for mx:Text</a></li><li><a href='http://franto.com/add-thumbs-to-mxslider-programatically/' title='FlexTip: Add Thumbs to Mx:Slider programatically'>FlexTip: Add Thumbs to Mx:Slider programatically</a></li><li><a href='http://franto.com/as3-conditional-breakpoint-enterdebugger/' title='AS3 Conditional Breakpoint &#8211; enterDebugger()'>AS3 Conditional Breakpoint &#8211; enterDebugger()</a></li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share data-url="http://franto.com/flextips-problem-with-masks-and-scalable-flash/" data-text="FlexTip: Problem with masks and scalable Flash"data-count="vertical" data-lang="en" data-related="Flex,Flex+Tips""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>This may be useful for someone who does not read Flex documentation in more detail. When you have content which is masked and you allow scale for your application, mask will not scale if it is not added to display list (it&#8217;s written in documentation <img src='http://franto.com/blog2/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ). So if  you have such problem, add you mask to display list (addChild) and it solves your problem.</p>
<p>Another problem with scaling is mx:Text component. When you do not set width for Text, there is problem with resizing of you app. Some word from end of text can be not visible sometime. Setting width=&#8221;100%&#8221; is helpful&#8230;.</p>
<p>This we have found in our project. It&#8217;s just for apps which are scalable.</p>
<p>Hope this will help.</p>
 <div class='series_links'><a href='http://franto.com/flextips-xmlsocket-connect-after-disconnect-from-server/' title='FlexTip: XMLSocket connect() after disconnect from server'>Previous in series</a> <a href='http://franto.com/flextips-how-to-add-bitmap-to-uicomponent/' title='FlexTips: How to add Bitmap to UIComponent'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/flextips-problem-with-masks-and-scalable-flash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FlexTip: XMLSocket connect() after disconnect from server</title>
		<link>http://franto.com/flextips-xmlsocket-connect-after-disconnect-from-server/</link>
		<comments>http://franto.com/flextips-xmlsocket-connect-after-disconnect-from-server/#comments</comments>
		<pubDate>Tue, 24 Jul 2007 06:40:24 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Flex Tips]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.franto.com/blog2/flextips-xmlsocket-connect-after-disconnect-from-server</guid>
		<description><![CDATA[Here is another Flex tips I came across in our project. I don&#8217;t know if this was in AS2.0 as well, but in AS3.0 when you receive event that XMLSocket is disconnected (server is disconnected, your net connection is broken), you can&#8217;t call xmlsocket.connect() immediately, but you have to wait for a while. So add [...]]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for flex-tips</h3><ol><li><a href='http://franto.com/flextips/' title='FlexTips'>FlexTips</a></li><li><a href='http://franto.com/flextips-mxtext-vs-mxtextarea/' title='FlexTip: mx:Text vs. mx:TextArea'>FlexTip: mx:Text vs. mx:TextArea</a></li><li>FlexTip: XMLSocket connect() after disconnect from server</li><li><a href='http://franto.com/flextips-problem-with-masks-and-scalable-flash/' title='FlexTip: Problem with masks and scalable Flash'>FlexTip: Problem with masks and scalable Flash</a></li><li><a href='http://franto.com/flextips-how-to-add-bitmap-to-uicomponent/' title='FlexTips: How to add Bitmap to UIComponent'>FlexTips: How to add Bitmap to UIComponent</a></li><li><a href='http://franto.com/flextips-stop-displaying-focus/' title='FlexTip &#8211; Stop displaying Focus'>FlexTip &#8211; Stop displaying Focus</a></li><li><a href='http://franto.com/preventing-checkbox-selection-with-keyspace/' title='FlexTip: Preventing CheckBox selection with Key.SPACE'>FlexTip: Preventing CheckBox selection with Key.SPACE</a></li><li><a href='http://franto.com/flextip-wordwrap-for-mxtext/' title='FlexTip: WordWrap for mx:Text'>FlexTip: WordWrap for mx:Text</a></li><li><a href='http://franto.com/add-thumbs-to-mxslider-programatically/' title='FlexTip: Add Thumbs to Mx:Slider programatically'>FlexTip: Add Thumbs to Mx:Slider programatically</a></li><li><a href='http://franto.com/as3-conditional-breakpoint-enterdebugger/' title='AS3 Conditional Breakpoint &#8211; enterDebugger()'>AS3 Conditional Breakpoint &#8211; enterDebugger()</a></li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share data-url="http://franto.com/flextips-xmlsocket-connect-after-disconnect-from-server/" data-text="FlexTip: XMLSocket connect() after disconnect from server"data-count="vertical" data-lang="en" data-related="Flex,Flex+Tips""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>Here is another Flex tips I came across in our project. I don&#8217;t know if this was in AS2.0 as well, but in AS3.0 when you receive event that XMLSocket is disconnected (server is disconnected, your net connection is broken), you can&#8217;t call xmlsocket.connect() immediately, but you have to wait for a while. So add there Timer(), or call it with function callLater(). It seems it must be called on next frame. I will not upload any example, because I don&#8217;t have running test XML server, but I think it is clear what you have to do.</p>
<p>Let me know, if you have similar issue in your projects.</p>
 <div class='series_links'><a href='http://franto.com/flextips-mxtext-vs-mxtextarea/' title='FlexTip: mx:Text vs. mx:TextArea'>Previous in series</a> <a href='http://franto.com/flextips-problem-with-masks-and-scalable-flash/' title='FlexTip: Problem with masks and scalable Flash'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/flextips-xmlsocket-connect-after-disconnect-from-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>FlexTip: mx:Text vs. mx:TextArea</title>
		<link>http://franto.com/flextips-mxtext-vs-mxtextarea/</link>
		<comments>http://franto.com/flextips-mxtext-vs-mxtextarea/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 18:01:58 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Flex Tips]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.franto.com/blog2/flextips-mxtext-vs-mxtextarea</guid>
		<description><![CDATA[Here my first tip for Flex developers. Maybe many of you know, maybe it will be helpful for someone. If you want make custom component, let&#8217;s say &#8220;Message dialog&#8221; which should be resized according text, nothing is easier. Just use mx:Text, not mx:TextArea. mx:Text has ability to resize according its text property. If you don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for flex-tips</h3><ol><li><a href='http://franto.com/flextips/' title='FlexTips'>FlexTips</a></li><li>FlexTip: mx:Text vs. mx:TextArea</li><li><a href='http://franto.com/flextips-xmlsocket-connect-after-disconnect-from-server/' title='FlexTip: XMLSocket connect() after disconnect from server'>FlexTip: XMLSocket connect() after disconnect from server</a></li><li><a href='http://franto.com/flextips-problem-with-masks-and-scalable-flash/' title='FlexTip: Problem with masks and scalable Flash'>FlexTip: Problem with masks and scalable Flash</a></li><li><a href='http://franto.com/flextips-how-to-add-bitmap-to-uicomponent/' title='FlexTips: How to add Bitmap to UIComponent'>FlexTips: How to add Bitmap to UIComponent</a></li><li><a href='http://franto.com/flextips-stop-displaying-focus/' title='FlexTip &#8211; Stop displaying Focus'>FlexTip &#8211; Stop displaying Focus</a></li><li><a href='http://franto.com/preventing-checkbox-selection-with-keyspace/' title='FlexTip: Preventing CheckBox selection with Key.SPACE'>FlexTip: Preventing CheckBox selection with Key.SPACE</a></li><li><a href='http://franto.com/flextip-wordwrap-for-mxtext/' title='FlexTip: WordWrap for mx:Text'>FlexTip: WordWrap for mx:Text</a></li><li><a href='http://franto.com/add-thumbs-to-mxslider-programatically/' title='FlexTip: Add Thumbs to Mx:Slider programatically'>FlexTip: Add Thumbs to Mx:Slider programatically</a></li><li><a href='http://franto.com/as3-conditional-breakpoint-enterdebugger/' title='AS3 Conditional Breakpoint &#8211; enterDebugger()'>AS3 Conditional Breakpoint &#8211; enterDebugger()</a></li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share data-url="http://franto.com/flextips-mxtext-vs-mxtextarea/" data-text="FlexTip: mx:Text vs. mx:TextArea"data-count="vertical" data-lang="en" data-related="Flex,Flex+Tips""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>Here my first tip for Flex developers. Maybe many of you know, maybe it will be helpful for someone. If you want make custom component, let&#8217;s say &#8220;<em>Message dialog</em>&#8221; which should be resized according text, nothing is easier. Just use mx:Text, not mx:TextArea. mx:Text has ability to resize according its text property. If you don&#8217;t specify widht and height, width and height i resized for mx:Text. If you specify one property (width or height), second one will be resized when text will be longer. For mx:TextArea just scrollbars will appear.</p>
<table border="0" width="420">
<tbody>
<tr>
<td>Play with example and look into <a href="http://www.franto.com/blog2/wp-download/flex/flextips/text-textarea/srcview/" target="_blank">source code</a>.</td>
</tr>
<tr>
<td><a href="http://www.franto.com/blog2/wp-download/flex/flextips/text-textarea"><img src="http://blog.franto.com/wp-content/flextip1.jpg" alt="FlexTip - mx:Text vs. mx:TextArea" /></a></td>
</tr>
</tbody>
</table>
 <div class='series_links'><a href='http://franto.com/flextips/' title='FlexTips'>Previous in series</a> <a href='http://franto.com/flextips-xmlsocket-connect-after-disconnect-from-server/' title='FlexTip: XMLSocket connect() after disconnect from server'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/flextips-mxtext-vs-mxtextarea/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FlexTips</title>
		<link>http://franto.com/flextips/</link>
		<comments>http://franto.com/flextips/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 17:51:50 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Flex Tips]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.franto.com/blog2/flextips</guid>
		<description><![CDATA[I&#8217;m starting my contribution to Flex community. From time to time I will publish Flex tips for Flex developers. Of course examples with source code will be attached as well. 1st Flex tip will be posted in few minutes. Stay tuned&#8230;]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for flex-tips</h3><ol><li>FlexTips</li><li><a href='http://franto.com/flextips-mxtext-vs-mxtextarea/' title='FlexTip: mx:Text vs. mx:TextArea'>FlexTip: mx:Text vs. mx:TextArea</a></li><li><a href='http://franto.com/flextips-xmlsocket-connect-after-disconnect-from-server/' title='FlexTip: XMLSocket connect() after disconnect from server'>FlexTip: XMLSocket connect() after disconnect from server</a></li><li><a href='http://franto.com/flextips-problem-with-masks-and-scalable-flash/' title='FlexTip: Problem with masks and scalable Flash'>FlexTip: Problem with masks and scalable Flash</a></li><li><a href='http://franto.com/flextips-how-to-add-bitmap-to-uicomponent/' title='FlexTips: How to add Bitmap to UIComponent'>FlexTips: How to add Bitmap to UIComponent</a></li><li><a href='http://franto.com/flextips-stop-displaying-focus/' title='FlexTip &#8211; Stop displaying Focus'>FlexTip &#8211; Stop displaying Focus</a></li><li><a href='http://franto.com/preventing-checkbox-selection-with-keyspace/' title='FlexTip: Preventing CheckBox selection with Key.SPACE'>FlexTip: Preventing CheckBox selection with Key.SPACE</a></li><li><a href='http://franto.com/flextip-wordwrap-for-mxtext/' title='FlexTip: WordWrap for mx:Text'>FlexTip: WordWrap for mx:Text</a></li><li><a href='http://franto.com/add-thumbs-to-mxslider-programatically/' title='FlexTip: Add Thumbs to Mx:Slider programatically'>FlexTip: Add Thumbs to Mx:Slider programatically</a></li><li><a href='http://franto.com/as3-conditional-breakpoint-enterdebugger/' title='AS3 Conditional Breakpoint &#8211; enterDebugger()'>AS3 Conditional Breakpoint &#8211; enterDebugger()</a></li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share data-url="http://franto.com/flextips/" data-text="FlexTips"data-count="vertical" data-lang="en" data-related="Flex,Flex+Tips""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>I&#8217;m starting my contribution to Flex community. From time to time I will publish Flex tips for Flex developers. Of course examples with source code will be attached as well. 1st Flex tip will be posted in few minutes. Stay tuned&#8230;</p>
 <div class='series_links'> <a href='http://franto.com/flextips-mxtext-vs-mxtextarea/' title='FlexTip: mx:Text vs. mx:TextArea'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/flextips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

