<?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>Alan Gruskoff - Tech Web Log</title>
	<atom:link href="http://digitalshowcase.biz/wordpress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://digitalshowcase.biz/wordpress</link>
	<description>Software Designer</description>
	<lastBuildDate>Fri, 03 Feb 2012 21:02:16 +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>Adobe Flex &#8211; Using Embedded Images for Drawing Fills</title>
		<link>http://digitalshowcase.biz/wordpress/?p=234</link>
		<comments>http://digitalshowcase.biz/wordpress/?p=234#comments</comments>
		<pubDate>Fri, 03 Feb 2012 20:28:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[Rich Internet Applications]]></category>

		<guid isPermaLink="false">http://digitalshowcase.biz/wordpress/?p=234</guid>
		<description><![CDATA[This drove me Mental I must say (thanks Ed Grimley), that is trying to get the right Flex classes to work together to just draw a rectangle filled with my embedded image.  I did notice some good examples of reading &#8230; <a href="http://digitalshowcase.biz/wordpress/?p=234">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This drove me Mental I must say (thanks Ed Grimley), that is trying to get the right Flex classes to work together to just draw a rectangle filled with my embedded image.  I did notice some good examples of reading (loading) in an image, then using that image to draw fills with. I needed to do that another way, with images I have already bonded to my app using the [Embed] convention, ex:</p>
<pre>[Embed(source="images/metaldots48.png")]
 public var bitmapClass:Class;</pre>
<p>What I struggled with was trying to attach (or post) my &#8220;Class&#8221; image into an instance of the required BitmapData class. The key I found was using the &#8220;BitmapAsset&#8221; class which is compatible with posting our embedded image into BitmapData objects. That put things together. Since I did not find any example of how to do this, I am making one.</p>
<p>The results will look like this:</p>
<p><a href="http://digitalshowcase.biz/wordpress/?attachment_id=221" rel="attachment wp-att-221"><img title="Results of Drawing Fills with Embedded Images" src="http://digitalshowcase.biz/wordpress/wp-content/uploads/2012/02/show1.png" alt="results" width="546" height="155" /></a></p>
<p>The Flex Project that has this one piece of code and this image is available here:<br />
<a title="Download the Flex Project here" href="http://digitalshowcase.biz/flex/FillsWithEmbeddedImages.zip" target="_blank">http://digitalshowcase.biz/flex/FillsWithEmbeddedImages.zip</a></p>
<p>The MXML Code: <a title="MXML code" href="http://digitalshowcase.biz/flex/FillsWithEmbeddedImages.mxml" target="_blank">http://digitalshowcase.biz/flex/FillsWithEmbeddedImages.mxml</a></p>
<p>While I am using the latest/great Flex 4.6 at time of writing, I made this Flex Project compatible with Flex 3.6, all MX, no Spark needed. Certainly the way this works is applicable to any Flex project.  The graphics object drawing can draw into any object that has a graphics component. You&#8217;ll know that by seeing &#8220;graphics&#8221; in the code completion.</p>
<p>I did notice that using a backgroundColor for the Box seems to hide the graphics drawing, so watch out for that. You can draw your own backgrounds using the <strong>g.beginFill(0xCCCCCC);</strong> method of the graphics object.</p>
<p>- Alan Gruskoff, Digital Showcase LLC<br />
<a href="http://digitalshowcase.biz/wordpress/?attachment_id=224" rel="attachment wp-att-224"><img title="digitalshowcase email" src="http://digitalshowcase.biz/wordpress/wp-content/uploads/2012/02/digitalshowcase.gif" alt="" width="258" height="30" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://digitalshowcase.biz/wordpress/?feed=rss2&#038;p=234</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The &#8220;NBA Players&#8221; Tutorial</title>
		<link>http://digitalshowcase.biz/wordpress/?p=6</link>
		<comments>http://digitalshowcase.biz/wordpress/?p=6#comments</comments>
		<pubDate>Fri, 13 Nov 2009 19:09:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Rich Internet Applications]]></category>
		<category><![CDATA[Zend AMF]]></category>

		<guid isPermaLink="false">http://digitalshowcase.biz/wordpress/?p=6</guid>
		<description><![CDATA[I (Alan Gruskoff) will be maintaining this blog to support the &#8220;NBA Players&#8221; Tutorial I developed in Flex 3 / PostgreSQL / XML / PHP / Zend AMF technology for making superb Rich Internet Applications. To try that live demo &#8230; <a href="http://digitalshowcase.biz/wordpress/?p=6">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I (Alan Gruskoff) will be maintaining this blog to support the &#8220;NBA Players&#8221; Tutorial I developed in Flex 3 / PostgreSQL / XML / PHP / Zend AMF technology for making superb Rich Internet Applications.</p>
<p>To try that live demo <a href="http://digitalshowcase.biz/demos/players/Players.html" target="_blank">Click here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://digitalshowcase.biz/wordpress/?feed=rss2&#038;p=6</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

