facebook twitter hatena line email

Flash/FlashBuilderでAirforAndroid/helloworld

提供: 初心者エンジニアの簡易メモ
2015年5月20日 (水) 02:58時点における127.0.0.1 (トーク)による版 (ページの作成:「==FlashBuilder(burrito)体験版をダウンロード== http://labs.adobe.com/technologies/flashbuilder_burrito/ ==helloworld== #新規/Flexモバイルプロジェク...」)

(差分) ←前の版 | 最新版 (差分) | 次の版→ (差分)
移動: 案内検索

FlashBuilder(burrito)体験版をダウンロード

http://labs.adobe.com/technologies/flashbuilder_burrito/

helloworld

  1. 新規/Flexモバイルプロジェクトでプロジェクト名helloworldで作成
  2. 後は全部デフォでOK
  3. helloworld.mxmlはいじらず
<?xml version="1.0" encoding="utf-8"?>
<s:MobileApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
          xmlns:s="library://ns.adobe.com/flex/spark" firstView="views._helloworld">
  <fx:Declarations>
    <!-- 非ビジュアルエレメント (サービス、値オブジェクトなど) をここに配置 -->
  </fx:Declarations>
</s:MobileApplication>
  1. views/_helloworld.mxmlを以下のとおり編集
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" 
    xmlns:s="library://ns.adobe.com/flex/spark" title="ホーム">
  <fx:Declarations>
    <!-- 非ビジュアルエレメント (サービス、値オブジェクトなど) をここに配置 -->
  </fx:Declarations>
  <s:Label text="helloworld" />
</s:View>
  1. 実行/デバッグの構成を実行
  2. デスクトップ上にチェックし、HTC~を選択し実行
  3. エミュレータが起動し、作成したアプリが表示される

android実機で確認

  1. 実行/デバッグの構成を実行
  2. デバイス上とUSBにチェックしデバッグ

(後で確認:IS-04つなげたが端末を認識せず・・・)

apk配布

android実機で実行した際にbin-debugに~.apkファイルができるので、そのapkを配布

(後で確認:なんだか動かない・・・)

参考URL

http://flashcast.jp/blog/2011/01/flash-builder-burrito-tried-in-air-for-android-run.html