<?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>Flexmaniak.pl &#187; AIR</title>
	<atom:link href="http://blog.flexmaniak.pl/category/air/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.flexmaniak.pl</link>
	<description>Flex, Papervision3D, PHP, Symfony</description>
	<lastBuildDate>Sun, 02 Oct 2011 08:36:28 +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>[AIR] How to hide bar at the bottom of application</title>
		<link>http://blog.flexmaniak.pl/air/air-how-to-hide-bar-at-the-bottom-of-application</link>
		<comments>http://blog.flexmaniak.pl/air/air-how-to-hide-bar-at-the-bottom-of-application#comments</comments>
		<pubDate>Thu, 07 Oct 2010 17:51:10 +0000</pubDate>
		<dc:creator>damian</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[bar]]></category>
		<category><![CDATA[bottom]]></category>
		<category><![CDATA[bottombar]]></category>
		<category><![CDATA[status]]></category>
		<category><![CDATA[statusbar]]></category>

		<guid isPermaLink="false">http://blog.flexmaniak.pl/?p=1034</guid>
		<description><![CDATA[Every AIR application has by default a bar at the bottom. It is shown in the picture below: To hide it, you have to add one line for example in application&#8217;s applicatonComplete handler: /** * Application's applicationComplete handler * * @return void */ protected function this_APPLICATION_COMPLETE&#40;&#41;:void &#123; &#160; &#160; statusBar.visible = false; &#125;//function]]></description>
			<content:encoded><![CDATA[<p>Every AIR application has by default a bar at the bottom. It is shown in the picture below:</p>
<div id="attachment_1035" class="wp-caption alignnone" style="width: 527px"><a href="http://blog.flexmaniak.pl/wp-content/upload/bar.jpg"><img class="size-full wp-image-1035" title="Status bar" src="http://blog.flexmaniak.pl/wp-content/upload/bar.jpg" alt="How to hide the bar from the bottom" width="517" height="416" /></a><p class="wp-caption-text">Status bar</p></div>
<p>To hide it, you have to add one line for example in application&#8217;s <em>applicatonComplete</em> handler:</p>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">/**<br />
* Application's applicationComplete handler<br />
*<br />
* @return void<br />
*/</span><br />
protected <span style="color: #000000; font-weight: bold;">function</span> this_APPLICATION_COMPLETE<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
<br />
&nbsp; &nbsp; statusBar.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br />
<br />
<span style="color: #66cc66;">&#125;</span><span style="color: #808080; font-style: italic;">//function</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexmaniak.pl/air/air-how-to-hide-bar-at-the-bottom-of-application/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drag and drop in AIR appliaction</title>
		<link>http://blog.flexmaniak.pl/air/drag-and-drop-in-air-appliaction</link>
		<comments>http://blog.flexmaniak.pl/air/drag-and-drop-in-air-appliaction#comments</comments>
		<pubDate>Tue, 05 Oct 2010 22:42:31 +0000</pubDate>
		<dc:creator>Piotr Wierzgała</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[drag and drop]]></category>
		<category><![CDATA[nativeDragDrop]]></category>
		<category><![CDATA[nativeDragEnter]]></category>
		<category><![CDATA[NativeDragManager]]></category>

		<guid isPermaLink="false">http://blog.flexmaniak.pl/?p=1024</guid>
		<description><![CDATA[The following post presents steps that should be taken to enable drag and drop action of files in AIR appliaction. In order to use drag and drop funcionality we need to implement two functions that will react to nativeDragEnter and nativeDragDrop events. NativeDragEnter event is dispatched when mouse pointer with dragged content passes boundaries of [...]]]></description>
			<content:encoded><![CDATA[<p>The following post presents steps that should be taken to enable drag and drop action of files in AIR appliaction.</p>
<p><span id="more-1024"></span></p>
<p>In order to use drag and drop funcionality we need to implement two functions that will react to <strong>nativeDragEnter</strong> and <strong>nativeDragDrop</strong> events.</p>
<p><strong>NativeDragEnter</strong> event is dispatched when mouse pointer with dragged content passes boundaries of a component. All we do in this handler is accepting the dragged data. If we don&#8217;t do it the plus-sign-icon won&#8217;t appear next to the mouse pointer and we won&#8217;t be able to drop dragged data. To accept the dragged content we need to use acceptDragDrop(target:InteractiveObject) function from the static NativeDragManager class.</p>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> nativeDragEnter_handler<span style="color: #66cc66;">&#40;</span>event:NativeDragEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; NativeDragManager.<span style="color: #006600;">acceptDragDrop</span><span style="color: #66cc66;">&#40;</span>some_interactive_object<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span></div></div>
<p>If you&#8217;d like to to check what kind of data was dragged over component you can use <strong>event.clipboard.hasFormat(format:String)</strong> function which takes one of the following consts as a parameter:</p>
<ul>
<li>BITMAP_FORMAT: a BitmapData object,</li>
<li>FILE_LIST_FORMAT: an array of File objects,</li>
<li>HTML_FORMAT: HTML-formatted string data,</li>
<li>RICH_TEXT_FORMAT: a ByteArray containing Rich Text Format data,</li>
<li>TEXT_FORMAT: string data,</li>
<li>URL_FORMAT: a URL string.</li>
</ul>
<p>It returns TRUE if the dragged data is compatibile with the specified format.</p>
<p><strong>NativeDragDrop</strong> event is dispatched when user releases the dragged item over the component. In this handler we will use <strong>event.clipboard.getData(format:String)</strong> function to get the dragged data. If the dragged items were some files from a hard drive then the specified format would be FILE_LIST_FORMAT.</p>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> nativeDragDrop_handler<span style="color: #66cc66;">&#40;</span>event:NativeDragEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> files:<span style="color: #0066CC;">Array</span> = event.<span style="color: #006600;">clipboard</span>.<span style="color: #006600;">getData</span><span style="color: #66cc66;">&#40;</span>ClipboardFormats.<span style="color: #006600;">FILE_LIST_FORMAT</span><span style="color: #66cc66;">&#41;</span> as <span style="color: #0066CC;">Array</span>;<br />
<span style="color: #66cc66;">&#125;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexmaniak.pl/air/drag-and-drop-in-air-appliaction/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating AIR application with ApplicationUpdaterUI</title>
		<link>http://blog.flexmaniak.pl/air/updating-air-application-with-applicationupdaterui</link>
		<comments>http://blog.flexmaniak.pl/air/updating-air-application-with-applicationupdaterui#comments</comments>
		<pubDate>Sat, 25 Sep 2010 21:27:14 +0000</pubDate>
		<dc:creator>Piotr Wierzgała</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[ApplicationUpdaterUI]]></category>

		<guid isPermaLink="false">http://blog.flexmaniak.pl/?p=948</guid>
		<description><![CDATA[The following post shows how to use ApplicationUpdaterUI class to update AIR application. Table of contents How to use ApplicationUpdaterUI? How to use ApplicationUpdaterUI? AppliacationUpdaterUI may need to restart the application therefore it is good to check for updates during application startup. applicationUpdaterUI = new ApplicationUpdaterUI&#40;&#41;;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>The following post shows how to use ApplicationUpdaterUI class to update AIR application.</p>
<p><span id="more-948"></span></p>
<h3>Table of contents</h3>
<ul>
<li><a a href='#how-to-use-applicationupdaterui'>How to use ApplicationUpdaterUI?</a></li>
</ul>
<h3><a name='how-to-use-applicationupdaterui'>How to use ApplicationUpdaterUI?</a></h3>
<p>AppliacationUpdaterUI may need to restart the application therefore it is good to check for updates during application startup.</p>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">applicationUpdaterUI = <span style="color: #000000; font-weight: bold;">new</span> ApplicationUpdaterUI<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
applicationUpdaterUI.<span style="color: #006600;">updateURL</span> = <span style="color: #ff0000;">&quot;URL to your XML udpate descriptor&quot;</span>;<br />
applicationUpdaterUI.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>UpdateEvent.<span style="color: #006600;">INITIALIZED</span>, applicationUpdaterUI_INITIALIZED<span style="color: #66cc66;">&#41;</span>;<br />
applicationUpdaterUI.<span style="color: #006600;">initialize</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></div>
<p>Once application updater is initialized we can start the update process with checkNow() method.</p>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> applicationUpdaterUI_INITIALIZED<span style="color: #66cc66;">&#40;</span>event:UpdateEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; applicationUpdaterUI.<span style="color: #006600;">checkNow</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span></div></div>
<p>XML update descriptor should use the following template:</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;update</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://ns.adobe.com/air/framework/update/description/1.0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Version of the AIR file.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>URL that points to the new version of the AIR file.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Description of the new application version<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/update<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexmaniak.pl/air/updating-air-application-with-applicationupdaterui/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Demotywatory Reader</title>
		<link>http://blog.flexmaniak.pl/air/demotywatory-reader</link>
		<comments>http://blog.flexmaniak.pl/air/demotywatory-reader#comments</comments>
		<pubDate>Sat, 27 Feb 2010 22:29:02 +0000</pubDate>
		<dc:creator>damian</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[aplikacja]]></category>
		<category><![CDATA[demotywatory]]></category>
		<category><![CDATA[demotywatory.pl]]></category>
		<category><![CDATA[desktopowa]]></category>

		<guid isPermaLink="false">http://blog.flexmaniak.pl/?p=379</guid>
		<description><![CDATA[Chcąc sprawdzić jakie są różnice w robieniu aplikacji webowej i desktopowej we Flexie, postanowiłem napisac prosty programik, który umożliwia w szybko sposób prześledzenie ostatnich wpisów na stronie demotywatory.pl :) Wiem, że dużo ludzi tam zagląda &#8211; teraz będzie szybciej i prościej :) Program do ściągnięcia tutaj. Nie wiem czy się przyjmie, dlatego wszelkie dodatki będę [...]]]></description>
			<content:encoded><![CDATA[<p>Chcąc sprawdzić jakie są różnice w robieniu aplikacji webowej i desktopowej we Flexie, postanowiłem napisac prosty programik, który umożliwia w szybko sposób prześledzenie ostatnich wpisów na stronie demotywatory.pl :)</p>
<p>Wiem, że dużo ludzi tam zagląda &#8211; teraz będzie szybciej i prościej :)</p>
<p>Program do ściągnięcia <a href="http://blog.flexmaniak.pl/examples/DemotywatoryReader.air">tutaj</a>.<br />
Nie wiem czy się przyjmie, dlatego wszelkie dodatki będę robił dopiero jak program się komuś spodoba i ktoś go zacznie używać. A tymczasem będę ulepszał komponent z poprzedniego <a href="http://blog.flexmaniak.pl/flex_i_php/pagination-datagrid-service-paginateddatagrid-v0-1-english">wpisu</a> &#8211; chce go zrobić na podobieństwo ExtJS&#8217;owego DataGrida.</p>
<p>Żeby uruchomić trzeba ściągnąc do Abobe&#8217;a <a href="http://get.adobe.com/air/">Air Runtime</a>. To taki Adobe&#8217;owy odpowiednik witrualnej maszyny np. Javy.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexmaniak.pl/air/demotywatory-reader/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

