<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Thoughts on Flex</title>
	<atom:link href="http://toflex.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://toflex.wordpress.com</link>
	<description>Just some thoughts on Adobe Flex &#38; Air</description>
	<lastBuildDate>Wed, 04 Jan 2012 11:28:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='toflex.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Thoughts on Flex</title>
		<link>http://toflex.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://toflex.wordpress.com/osd.xml" title="Thoughts on Flex" />
	<atom:link rel='hub' href='http://toflex.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Drag &amp; Drop, Lists and [RemoteClass]</title>
		<link>http://toflex.wordpress.com/2009/09/24/drag-drop-lists-and-custom-classes/</link>
		<comments>http://toflex.wordpress.com/2009/09/24/drag-drop-lists-and-custom-classes/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 08:44:18 +0000</pubDate>
		<dc:creator>MysticEarth</dc:creator>
				<category><![CDATA[DragDrop]]></category>
		<category><![CDATA[MetaData]]></category>

		<guid isPermaLink="false">http://toflex.wordpress.com/?p=25</guid>
		<description><![CDATA[The scenario: List 1: DragEnabled = true; List 1: DataProvider contains custom classes: MyClass (these classes do not extend any other class) List 2: DropEnabled = true; The problem: When I dragged the item from List 1 to List 2, the MyClass item was converted to an Object. As I wanted to display different ItemRenderers [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toflex.wordpress.com&amp;blog=9195825&amp;post=25&amp;subd=toflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>The scenario:</strong></p>
<ul>
<li>List 1: <em>DragEnabled = true;</em></li>
<li>List 1:<em> DataProvider </em>contains custom classes: <em>MyClass </em>(these classes do not extend any other class)</li>
<li>List 2<em>: DropEnabled = true;</em></li>
</ul>
<p><strong>The problem:</strong><br />
When I dragged the item from List 1 to List 2, the <em>MyClass </em>item was converted to an <em>Object</em>. As I wanted to display different <em>ItemRenderers </em>based on the class I needed the items not to be converted to an <em>Object</em>.</p>
<p><strong>The solution:</strong><br />
Using the <em>[RemoteClass]</em> MetaData the class isn&#8217;t being converted to <em>Object </em>but remains <em>MyClass</em>.</p>
<blockquote><p>From the Flex Reference Library:<br />
<a>Use the [RemoteClass] metadata tag to register the  class with Flex so that Flex preserves type information when a class instance is  serialized by using Action Message Format (AMF). You insert the [RemoteClass] metadata tag before an ActionScript class  definition. </a></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toflex.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toflex.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toflex.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toflex.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toflex.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toflex.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toflex.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toflex.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toflex.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toflex.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toflex.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toflex.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toflex.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toflex.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toflex.wordpress.com&amp;blog=9195825&amp;post=25&amp;subd=toflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toflex.wordpress.com/2009/09/24/drag-drop-lists-and-custom-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bde40417536aedb23c63ad5dfbb9d53d?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">MysticEarth</media:title>
		</media:content>
	</item>
		<item>
		<title>Easy sound volume and fading in Flex with ExtendedSound</title>
		<link>http://toflex.wordpress.com/2009/08/28/easy-volume-and-fading-in-flex-with-extendedsound/</link>
		<comments>http://toflex.wordpress.com/2009/08/28/easy-volume-and-fading-in-flex-with-extendedsound/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 13:28:55 +0000</pubDate>
		<dc:creator>MysticEarth</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Media]]></category>

		<guid isPermaLink="false">http://toflex.wordpress.com/?p=18</guid>
		<description><![CDATA[Paul Bijl from mas•outreach created an easy to use Sound class for which gives you easy fading capabilities and volume setting without a SoundTransform and SoundChannel. The class itself creates these needed classes. The ExtendedSound class enables easy setting of volume and gives you fading capabilities. Download ExtendedSound.1.0.zip<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toflex.wordpress.com&amp;blog=9195825&amp;post=18&amp;subd=toflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Paul Bijl from <a href="http://www.masoutreach.nl">mas•outreach</a> created an easy to use <code>Sound</code> class for which gives you easy fading capabilities and volume setting without a <code>SoundTransform</code> and <code>SoundChannel</code>. The class itself creates these needed classes.</p>
<blockquote><p><strong></strong> The ExtendedSound class enables easy setting of <code>volume</code> and gives you <code>fading</code> capabilities.</p></blockquote>
<p><strong>Download</strong><span style="font-size:.8em;"><br />
<a href="www.masoutreach.nl/public/flex/ExtendedSound.1.0.zip">ExtendedSound.1.0.zip</a></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toflex.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toflex.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toflex.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toflex.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toflex.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toflex.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toflex.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toflex.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toflex.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toflex.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toflex.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toflex.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toflex.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toflex.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toflex.wordpress.com&amp;blog=9195825&amp;post=18&amp;subd=toflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toflex.wordpress.com/2009/08/28/easy-volume-and-fading-in-flex-with-extendedsound/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bde40417536aedb23c63ad5dfbb9d53d?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">MysticEarth</media:title>
		</media:content>
	</item>
		<item>
		<title>Add high resolution images to your PDF (AlivePDF)</title>
		<link>http://toflex.wordpress.com/2009/08/28/add-high-resolution-images-to-your-pdf/</link>
		<comments>http://toflex.wordpress.com/2009/08/28/add-high-resolution-images-to-your-pdf/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 08:35:48 +0000</pubDate>
		<dc:creator>MysticEarth</dc:creator>
				<category><![CDATA[AlivePDF]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[imagesnapshot]]></category>
		<category><![CDATA[jpegencoder]]></category>
		<category><![CDATA[jpg]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[pngencoder]]></category>

		<guid isPermaLink="false">http://toflex.wordpress.com/?p=4</guid>
		<description><![CDATA[With AlivePDF you can create PDF files with Flex. It&#8217;s a great library with much options. But how to add images to your PDF? There are 2 basic options you can use to add images to the PDF: Using an embedded JPG or PNG (remember: without transparency) myPDF.addImageStream( new EmbeddedImage() as ByteArray, 0, 0, 500, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toflex.wordpress.com&amp;blog=9195825&amp;post=4&amp;subd=toflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>With <a href="http://alivepdf.bytearray.org/">AlivePDF</a> you can create PDF files with Flex. It&#8217;s a great library with much options. But how to add images to your PDF? There are 2 basic options you can use to add images to the PDF:</p>
<ul style="margin-top:20px;margin-bottom:20px;">
<li><strong>Using an embedded JPG or PNG (remember: without transparency)</strong><code><br />
myPDF.addImageStream( new <em>EmbeddedImage()</em> as ByteArray, 0, 0, 500, 500, 1, ResizeMode.NONE);</code></li>
</ul>
<ul style="margin-top:20px;margin-bottom:20px;">
<li><strong>Using a <a href="http://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObject.html">DisplayObject</a> from within your application (charts, buttons, vbox&#8217;s, etc.)</strong><code><br />
myPDF.addImage(<em>DisplayObject</em>, 0, 0, 500, 500, ImageFormat.PNG);</code></li>
</ul>
<p>When you add a <em>DisplayObject</em> to the PDF as seen above, it will generate a low resolution <a href="http://livedocs.adobe.com/flex/3/langref/mx/graphics/ImageSnapshot.html">ImageSnapshot</a>. But what if you want a high resolution ImageSnapshot of your, let&#8217;s say, charts? Then you need to create the ImageSnapshot yourself:</p>
<ul style="margin-top:20px;margin-bottom:20px;">
<li><strong>By using the <a href="http://livedocs.adobe.com/flex/3/langref/mx/graphics/codec/JPEGEncoder.html">JPEGEncoder</a><br />
</strong><code>var image:ImageSnapshot = ImageSnapshot.captureImage(DisplayObject, 300, new JPEGEncoder());</code></li>
</ul>
<ul style="margin-top:20px;margin-bottom:20px;">
<li><strong>By using the <a href="http://livedocs.adobe.com/flex/3/langref/mx/graphics/codec/PNGEncoder.html">PNGEncoder</a><br />
</strong><code>var image:ImageSnapshot = ImageSnapshot.captureImage(DisplayObject, 300, new PNGEncoder());</code></li>
</ul>
<p>This wil return an ImageSnapshot, with a <a href="http://livedocs.adobe.com/flex/3/langref/flash/utils/ByteArray.html">ByteArray</a><em> </em>in it&#8217;s <em>data </em>property (<em>image.data</em>). Now you can add this high quality snapshot to the PDF:</p>
<ul style="margin-top:20px;margin-bottom:20px;">
<li><code>myPDF.addImageStream(image.data, 0, 0, image.width, image.height);</code></li>
</ul>
<p>Try to avoid the Flex JPGEncoder when you want to encode high resolution images, it will take a long time and block your browser. Instead, use an <a href="http://www.switchonthecode.com/tutorials/flex-tutorial-an-asynchronous-jpeg-encoder">Asynchronous JPG Encoder</a> as explained (and source code) by <a href="http://www.switchonthecode.com/">Switch on the Code</a>.</p>
<p><span style="font-size:.8em;"><em>Note: when you use PNGEncoder, be aware of DisplayObjects which have transparency. If you want to add a snapshot to the PDF with transparency, it&#8217;ll return an error. If anyone has the solution to this problem (high resolution PNG snapshot without transparency), please let me know. </em></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toflex.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toflex.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toflex.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toflex.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toflex.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toflex.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toflex.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toflex.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toflex.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toflex.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toflex.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toflex.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toflex.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toflex.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toflex.wordpress.com&amp;blog=9195825&amp;post=4&amp;subd=toflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toflex.wordpress.com/2009/08/28/add-high-resolution-images-to-your-pdf/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bde40417536aedb23c63ad5dfbb9d53d?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">MysticEarth</media:title>
		</media:content>
	</item>
	</channel>
</rss>
