Posts tagged as AIR

[Silverlight]Adobe AS3 Class Diagram Viewer

既に、Pepeさんやnitoyonさんが紹介している「Flex, ActionScript, AIR Posters」をWebで見れるようにしてみました。

Flex Team
Update on Flex, ActionScript, AIR Posters

中垣 茂 ( Shigeru Nakagaki ) | ブログ ( Flex, AIR, ColdFusion )
AS3, Flex 3, AIR ポスター...97メガっすか

てっく煮ブログ
AIR・AS3・Flex3のクラス相関図ポスターが公開中

 

申し訳ないですが、Silverlightです。
Silverlight 2.0 Beta Silverlight 3のプラグインが必要なので見たい人は入れてください。

Microsoft Silverlight: Light Up the Web
http://www.microsoft.com/silverlight/default.aspx

 

Deep Zoom Adobe ActionScript 3.0 Class Diagram Viewer – Silverlight 3
http://violentcoding.com/content/AdobeAS3ClassDiagramViewer/index.html

posters.pdfから1枚7,200×10,800ピクセル(解像度300相当)のPNG画像に書き出し、それら5枚を横に並べています。各画像のサイズは、22.3MB、32.3MB、32.7MB、24.1MB、30.0MBというボリュームです。

Adobe AS3 Class Diagram Viewer01

 

SilverlightのDeep Zoomという機能を使って表示してます。
MIX08で紹介されていたHard Rock Cafeのサイトで使っているやつです。

Hard Rock Memorabilia
http://memorabilia.hardrock.com/

マウスドラッグで画像の移動やマウスホイールで拡大縮小ができます。

Adobe AS3 Class Diagram Viewer02

Deep Zoomでは拡大縮小や移動を行っている最中に、結構な負荷がかかっています・・・。
CPU%で拡大縮小・移動時には80% – 90%位のスコアをたたき出しております。

 

作りはMSエバンジェリスト 大野さんの完コピです。

develop .net : Silverlight 2 の新機能 – Deep Zoom
http://blogs.msdn.com/mohno/archive/2008/03/12/silverlight-2-deep-zoom.aspx

develop .net : Silverlight 2 の新機能 – Deep Zoom(マウスホイール編)
http://blogs.msdn.com/mohno/archive/2008/03/12/Silverlight-2-Deep-Zoom-with-Mouse-Wheel.aspx

Related posts

[AIR]AIRのFile.applicationStorageDirectory

AIRで「File.applicationStorageDirectory」の保存場所をメモ。

 

Mac OS X:
Macintosh HD/Users/[ユーザー]/Library/Preferences/[AIRアプリID]/Local Store/

Windows XP:
C:¥Documents and Settings¥[ユーザー]¥Application Data¥[AIRアプリID]¥Local Store¥

※[AIRアプリID]部分はapp.xmlで設定する「appId」で指定した文字列。

 

例えば、以下のコードの場合、

//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();

「test.txt」が作られる場所は、
「[AIRアプリID]/Local Store/StorageTest/test.txt」となる。

そして、AIRアプリのインストーラーの「More Options」からアンインストールしても、データはそのまま残っている。Windowsで「プログラムの追加と削除」からでも残っている。

 

ついでに「File.applicationResourceDirectory」の場合は、
開発中は「bin」の中にあって、AIRとしてインストールされると、

Mac OS X:
([ユーザー]/Applicationsとかの)AIRアプリケーションを右クリックして「パッケージの内容を表示」→ Contents/Resourcesの中。

Windows XP:
C:¥Documents and Settings¥[ユーザー]¥Local Settings¥Application Data¥[AIRアプリ名]の中。
(「File.applicationStorageDirectory」と違ってLocal Settingsの中)

こちらは当然ながらアンインストールで消去される。

 

Related posts

[AIR]Adobe Air Betaへのアップグレード

MacでApolloからAirへのランタイムをアップグレードするのに、小1時間ばかりはまってしまった。
原因はただゴミ箱を空にしなかったから・・・

 

Apolloのランタイムをアンインストールすることは知っていたけど、MacでApolloのアンインストールが分からなかったので、取りあえずリリースノートも読まずにApollo alphaのランタイムを入れたままAirランタイムのインストーラを起動してみました。

そしたらインストーラが「/Library/Frameworks/Adobe Apollo.framework」を消してねって言うので、そのままゴミ箱に入れて、再びインストールを開始したら無事インストール完了。

 

で、Airのサンプル見るかー!と.airをダブルクリックするも、インストーラが動かない。何回やってもエラーダイアログばかり。いろいろやっているうちに「.air」がゴミ箱の中のapollo.appにひもづいたままだったので、もしやと思ってゴミ箱を空にしたら動いたー!

 

で、リリースノートを今になって見てみたら、きちんと書いてありました。

Air betaのアンインストールも書いてあるのでメモしとこう

AIR:Release Notes – Adobe Labs「Upgrading to Beta 1」

Before installing Adobe AIR Beta 1, please uninstall any previous versions of the runtime:

To uninstall the runtime on Windows:

  1. In the Windows Start menu, select Settings > Control Panel.
  2. Select the Add or Remove Programs control panel.
  3. Select “Adobe Apollo 1.0 Alpha1” to uninstall the Apollo runtime.
  4. Click the Change/Remove button.

To uninstall the runtime on Macintosh:

  1. Delete the /Library/Frameworks/Adobe Apollo.framework directory.
  2. Delete the /Library/Receipts/Adobe Apollo.pkg file.
  3. Empty the Trash.

Once you have installed Adobe AIR Beta 1, there is a new added application to uninstall the runtime on the Macintosh:

  • Double-Click the “Adobe AIR Uninstaller” from your <User>/Applications directory.

On Windows, users should continue to uninstall via Add/Remove Programs.

 

Airからインストール先がユーザーのLibraryになっているんですね。またアンインストーラも用意されたのですね。

それなら次は安心だ。

 

Related posts