<?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>blog ViolentCoding &#187; AIR</title>
	<atom:link href="http://violentcoding.com/blog/category/air/feed" rel="self" type="application/rss+xml" />
	<link>http://violentcoding.com/blog</link>
	<description>for more violent coder</description>
	<lastBuildDate>Tue, 18 Aug 2009 06:11:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[AIR]AIRのFile.applicationStorageDirectory</title>
		<link>http://violentcoding.com/blog/2007/08/16/archives/19</link>
		<comments>http://violentcoding.com/blog/2007/08/16/archives/19#comments</comments>
		<pubDate>Thu, 16 Aug 2007 11:00:44 +0000</pubDate>
		<dc:creator>e_s_jp</dc:creator>
				<category><![CDATA[AIR]]></category>

		<guid isPermaLink="false">http://violentcoding.com/blog/2007/08/16/archives/19</guid>
		<description><![CDATA[
AIRで「File.applicationStorageDirectory」の保存場所をメモ。

&#160;

Mac OS X：
Macintosh HD/Users/[ユーザー]/Library/Preferen [...]]]></description>
			<content:encoded><![CDATA[<p>
AIRで「File.applicationStorageDirectory」の保存場所をメモ。
</p>
<p>&nbsp;</p>
<p>
<strong>Mac OS X：</strong><br />
Macintosh HD/Users/[ユーザー]/Library/Preferences/[AIRアプリID]/Local Store/
</p>
<p>
<strong>Windows XP：</strong><br />
C:¥Documents and Settings¥[ユーザー]¥Application Data¥[AIRアプリID]¥Local Store¥
</p>
<p>
※[AIRアプリID]部分はapp.xmlで設定する「appId」で指定した文字列。
</p>
<p>&nbsp;</p>
<p>
例えば、以下のコードの場合、</p>
<pre>
//file
var aFile:File=File.applicationStorageDirectory;
aFile = aFile.resolve("StorageTest/test.txt");
//stream
var aStream:FileStream=new FileStream();
aStream.open(aFile,FileMode.WRITE);
aStream.writeUTFBytes("StorageTest");
aStream.close();
</pre>
</p>
<p>
「test.txt」が作られる場所は、<br />
「[AIRアプリID]/Local Store/StorageTest/test.txt」となる。
</p>
<p>
そして、AIRアプリのインストーラーの「More Options」からアンインストールしても、データはそのまま残っている。Windowsで「プログラムの追加と削除」からでも残っている。
</p>
<p>&nbsp;</p>
<p>
ついでに「File.applicationResourceDirectory」の場合は、<br />
開発中は「bin」の中にあって、AIRとしてインストールされると、
</p>
<p>
<strong>Mac OS X：</strong><br />
（[ユーザー]/Applicationsとかの）AIRアプリケーションを右クリックして「パッケージの内容を表示」→　Contents/Resourcesの中。
</p>
<p>
<strong>Windows XP：</strong><br />
C:¥Documents and Settings¥[ユーザー]¥Local Settings¥Application Data¥[AIRアプリ名]の中。<br />
（「File.applicationStorageDirectory」と違ってLocal Settingsの中）
</p>
<p>こちらは当然ながらアンインストールで消去される。</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://violentcoding.com/blog/2007/08/16/archives/19/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[AIR]Adobe Air Betaへのアップグレード</title>
		<link>http://violentcoding.com/blog/2007/06/13/archives/12</link>
		<comments>http://violentcoding.com/blog/2007/06/13/archives/12#comments</comments>
		<pubDate>Tue, 12 Jun 2007 15:50:16 +0000</pubDate>
		<dc:creator>e_s_jp</dc:creator>
				<category><![CDATA[AIR]]></category>

		<guid isPermaLink="false">http://violentcoding.com/blog/2007/06/13/archives/12</guid>
		<description><![CDATA[MacでApolloからAirへのランタイムをアップグレードするのに、小１時間ばかりはまってしまった。
原因はただゴミ箱を空にしなかったから・・・
&#160;
Apolloのランタイムをアンインストールすることは知って [...]]]></description>
			<content:encoded><![CDATA[<p>MacでApolloからAirへのランタイムをアップグレードするのに、小１時間ばかりはまってしまった。<br />
原因はただ<strong>ゴミ箱を空にしなかった</strong>から・・・</p>
<p>&nbsp;</p>
<p>Apolloのランタイムをアンインストールすることは知っていたけど、MacでApolloのアンインストールが分からなかったので、取りあえずリリースノートも読まずにApollo alphaのランタイムを入れたままAirランタイムのインストーラを起動してみました。</p>
<p>そしたらインストーラが「/Library/Frameworks/Adobe Apollo.framework」を消してねって言うので、そのままゴミ箱に入れて、再びインストールを開始したら無事インストール完了。</p>
<p>&nbsp;</p>
<p>で、Airのサンプル見るかー！と.airをダブルクリックするも、インストーラが動かない。何回やってもエラーダイアログばかり。いろいろやっているうちに「.air」がゴミ箱の中のapollo.appにひもづいたままだったので、もしやと思ってゴミ箱を空にしたら動いたー！</p>
<p>&nbsp;</p>
<p>で、リリースノートを今になって見てみたら、きちんと書いてありました。</p>
<p>Air betaのアンインストールも書いてあるのでメモしとこう</p>
<p><a href="http://labs.adobe.com/wiki/index.php/AIR:Release_Notes#Uninstall_Alpha_1_before_installing_Beta_1">AIR:Release Notes &#8211; Adobe Labs「Upgrading to Beta 1」</a></p>
<blockquote>
<p>Before installing Adobe AIR Beta 1, please uninstall any previous versions of the runtime:
</p>
<p><b>To uninstall the runtime on Windows:</b>
</p>
<ol>
<li> In the Windows Start menu, select Settings &gt; Control Panel.
</li>
<li> Select the Add or Remove Programs control panel.
</li>
<li> Select “Adobe Apollo 1.0 Alpha1” to uninstall the Apollo runtime.
</li>
<li> Click the Change/Remove button.
</li>
</ol>
<p><b>To uninstall the runtime on Macintosh:</b></p>
<ol>
<li> Delete the /Library/Frameworks/Adobe Apollo.framework directory.
</li>
<li> Delete the /Library/Receipts/Adobe Apollo.pkg file.
</li>
<li> Empty the Trash.
</li>
</ol>
<p>Once you have installed Adobe AIR Beta 1, there is a new added application to uninstall the runtime on the Macintosh:
</p>
<ul>
<li> Double-Click the “Adobe AIR Uninstaller” from your &lt;User&gt;/Applications directory.
</li>
</ul>
<p>On Windows, users should continue to uninstall via Add/Remove Programs.
</p>
</blockquote>
<p />
<p>&nbsp;</p>
<p>Airからインストール先がユーザーのLibraryになっているんですね。またアンインストーラも用意されたのですね。</p>
<p>それなら次は安心だ。</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://violentcoding.com/blog/2007/06/13/archives/12/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
