<?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>Flash Moments &#187; flex</title>
	<atom:link href="http://flashmoments.novelastudios.com/tag/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://flashmoments.novelastudios.com</link>
	<description>ActionScript, Flash, and Flex</description>
	<lastBuildDate>Wed, 01 Dec 2010 02:59:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>The Power of Separated Logic: Opening the Door</title>
		<link>http://flashmoments.novelastudios.com/flex/power-separated-logic-opening-door/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://flashmoments.novelastudios.com/flex/power-separated-logic-opening-door/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 04:56:11 +0000</pubDate>
		<dc:creator>johntimothybailey</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[Design Patterns]]></category>
		<category><![CDATA[Spark Framework]]></category>

		<guid isPermaLink="false">http://flashmoments.novelastudios.com/?p=149</guid>
		<description><![CDATA[I have to give the Adobe Flash team big props on the new Spark framework&#8217;s focus on separated logic. Not only does it enhance my productivity and sanity, but it has opened wide the door for and encouraged the Flex community to create vast reusable code in ways that Flex 3 had problems encouraging developers [...]]]></description>
			<content:encoded><![CDATA[<div style="float:left;margin:0px 0px 0px 0px;"></div><p>I have to give the Adobe Flash team big props on the new Spark framework&#8217;s focus on separated logic. Not only does it enhance my productivity and sanity, but it has opened wide the door for and encouraged the Flex community to create vast reusable code in ways that Flex 3 had problems encouraging developers to do.<br />
For instance, the Spark separated layout structure with a DI slant has already saved time and encouraged so many layout concepts that are <strong>no longer component based</strong> solutions (<a href="http://saturnboy.com/2009/10/flow-layout/">example</a>). The community is now able to focus on solving small solutions and then combining them into greater solution for a given project!</p>
<p>I <em>expect</em> to see more focused classes coming soon.</p>
<p>UPDATE <span style="color: #808080;">(June 10, &#8217;10)</span>:<br />
The focus on solution driven instead of component has allowed Adobe to have features like Layout Mirroring (<a href="http://blogs.adobe.com/flexdoc/2010/05/layout_mirroring.html" target="_blank">link</a>). This further demonstrates the power of developing a DI driven framework. I encourage more of us to architect this way. OH MAN, did I really suggest us to architect like Adobe?!</p>
<img src="http://flashmoments.novelastudios.com/?ak_action=api_record_view&id=149&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://flashmoments.novelastudios.com/flex/power-separated-logic-opening-door/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BackgroundAlpha: Why contentBackgroundAlpha?</title>
		<link>http://flashmoments.novelastudios.com/flex/flex-4/backgroundalpha-contentbackgroundalpha/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://flashmoments.novelastudios.com/flex/flex-4/backgroundalpha-contentbackgroundalpha/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 02:36:28 +0000</pubDate>
		<dc:creator>johntimothybailey</dc:creator>
				<category><![CDATA[Discussion Wanter]]></category>
		<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[discussion wanted]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[Spark Framework]]></category>

		<guid isPermaLink="false">http://flashmoments.novelastudios.com/?p=101</guid>
		<description><![CDATA[Situation: I was working with the Spark (Flex4) TextArea component. I wanted the background to no longer be visible or just simply alpha set to zero. I expected I could set a stylesheet property backgroundAlpha to zero. However, that didn&#8217;t work and there wasn&#8217;t even a property on the component called that. I dug in [...]]]></description>
			<content:encoded><![CDATA[<div style="float:left;margin:0px 0px 0px 0px;"></div><p><strong>Situation:</strong> I was working with the Spark (Flex4) TextArea component. I wanted the background to no longer be visible or just simply alpha set to zero. I expected I could set a stylesheet property <em>backgroundAlpha</em> to zero. However, that didn&#8217;t work and there wasn&#8217;t even a property on the component called that. I dug in the source to find it and realized it is really <em>contentBackgroundAlpha.</em> Why? I see <em>borderAlpha</em> and expect to follow the same convention! I do not see <em>contentBorderAlpha</em>.</p>
<p><strong>Why break a convention? </strong><br />
<strong>Why use </strong><em><strong>contentBackgroundAlpha </strong></em><strong>when </strong><em><strong>borderAlpha</strong></em><strong> is present and there is not already a </strong><em><strong>backgroundAlpha</strong></em><strong>?!</strong></p>
<img src="http://flashmoments.novelastudios.com/?ak_action=api_record_view&id=101&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://flashmoments.novelastudios.com/flex/flex-4/backgroundalpha-contentbackgroundalpha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rasterize a Transformed Vector without Pixelation</title>
		<link>http://flashmoments.novelastudios.com/flex-3/rasterize-a-transformed-vector-without-pixelation/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://flashmoments.novelastudios.com/flex-3/rasterize-a-transformed-vector-without-pixelation/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 18:16:00 +0000</pubDate>
		<dc:creator>johntimothybailey</dc:creator>
				<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">http://flashmoments.novelastudios.com/?p=17</guid>
		<description><![CDATA[How does one rasterize a transformed vector capturing it&#8217;s new dimensions without pixelation? Note: This follows my previous post Matrix Not Synchronized Challenge: To render a bitmap of a transformed vector display object without pixelation. Specifically, after a mx.controls.Text is transformed, a bitmap snapshot is needed to be taken of the new object including the [...]]]></description>
			<content:encoded><![CDATA[<div style="float:left;margin:0px 0px 0px 0px;"></div><p><span style="color: #000000;"><strong>How does one rasterize a transformed vector capturing it&#8217;s new dimensions without pixelation?</strong></span></p>
<p><strong><em>Note</em></strong>: This follows my previous post <a href="http://flashmoments.novelastudios.com/?p=16#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">Matrix Not Synchronized</a></p>
<p><strong><em>Challenge</em></strong>: To render a bitmap of a transformed vector display object without pixelation. Specifically, after a mx.controls.Text is transformed, a bitmap snapshot is needed to be taken of the new object including the dimensions.  I should note that the reason I am needing to get a bitmap snapshot is do to some shaping to the text.</p>
<p><strong><em>Problem</em></strong>: However, doing so results in pixelation or resamples / renders the original dimensions of the transformed Text. It appears that flash.display.BitmapData::draw cannot get the new transformed display. In other words,  when a flash.display.InteractiveObject is scaled on the x axis (or any axis) using transform.matrix, flash.display.BitmapData::draw cannot capture the new dimensions of the display object.</p>
<p><strong><em>Example</em></strong>: <a href="http://sources.novelastudios.com/flash/matrix_adustments/MatriciesAndDimensions.html#">http://sources.novelastudios.com/flash/matrix_adustments/MatriciesAndDimensions.html#</a><br />
When the application creation complete is fired a snapshot is made. Change the matrix width (transform.matrix.a) and then re-render a snapshot / bitmap. Notice it retains the original, non-transformed values. Therefore and considering it is a rastered snapshot, when the snapshot/bitmap is scaled it becomes pixelated. Example version was 1.1.0.0 that should this problem. Version 1.2.0.0 is a workaround for now showing the workaround.</p>
<p><strong><em>Workaround</em></strong>: I give credit to Guy Stables (needs a link) and Alex Harui (http://blogs.adobe.com/aharui).  Essentially, the workaround is as follows:</p>
<ol>
<li><span style="color: #000000;"><span class="Apple-style-span">The InteractiveObject (<em>we&#8217;ll call our target</em>) needs to be placed in a container. <em>In this example mx.controls.Text is placed inside a mx.core.UIComponent. </em></span></span></li>
<li><span style="color: #000000;"><span class="Apple-style-span">The matrix transform is then applied to the target (<em>eg mx.controls.Text</em>)</span></span></li>
<li><span style="color: #000000;"><span class="Apple-style-span">The dimensions of the container (<em>eg the UIComponent that contains the Text/target</em>) are then set to the  target&#8217;s pixelBounds dimensions.</span></span></li>
<li><span style="color: #000000;"><span class="Apple-style-span"> Finally, take the snapshot bitmap of the container (<em>the UIComponent</em>).</span></span></li>
</ol>
<p><span style="color: #000000;">For a demonstration see the latest version 1.2.0.0 of the example.</span></p>
<p><strong><em>More Information:</em></strong><br />
Also found at <a href="http://forums.adobe.com/thread/521432">http://forums.adobe.com/thread/521432</a></p>
<img src="http://flashmoments.novelastudios.com/?ak_action=api_record_view&id=17&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://flashmoments.novelastudios.com/flex-3/rasterize-a-transformed-vector-without-pixelation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

