Showing posts with label Air for iOS. Show all posts
Showing posts with label Air for iOS. Show all posts

Sunday, April 22, 2012

AS3 言語の動的表示切替

ActionScript3のヘルプを読むと一見動的に表示言語を切り替えるには、loadLanguageXMLで呼び出した後に自分でTextFieldにひとつひとつ翻訳言語を割り当てるしかないように思えますが、loadLanguageXMLのコールバックメソッドが呼ばれ続けるバグがあるため、これはできません。

以下の方法が今のところのベストと考えられます。

・「実行時にActionScriptを使用して」を設定してビルド。

言語を切り替えるところで以下のロジックを埋め込み。(パラメータ設定の順番は重要)

Locale.autoReplace = true;
Locale.setDefaultLang("{言語コード}");
Locale.loadLanguageXML("{言語コード}");
これで今のところよさそうにみえる。

Flash CS5.5 Bug loadLanguageXML

Flash CS5.5の多言語化系は特に数多くのバグをかかえているため、よく検証しないと危険です。
中でのLocal.loadLanguageXMLは一度呼び出すと、呼び出しを繰り返し止らなくなるため非常に危険です。
traceなどを仕込まないと気づけませんが、1秒に10回ぐらい呼び続けています。もし言語ファイルがネットワーク上にあるとウィルスソフトと判別されてもおかしくないアプリができてしまいます。
対応方法は今のところ使わないことぐらいです。

Friday, April 13, 2012

Air for iOS iAd

Use this library. It's very easy to use it.
http://code.google.com/p/iad-air-ios/

Initialize iAd
AdBanner.adView.startShowingAds(AdBannerPosition.BOTTOM,false);

Show iAd
AdBanner.adView.visible = true;

Hide iAd
AdBanner.adView.visible = false;


Monday, April 9, 2012

Air アップグレード時のSharedObjectのデータ永続性

SharedObjectのデータ永続性

Air

  • バージョンアップ時OK
  • IOSアップグレード時 バックアップリストア (未検証)
Android
  • バージョンアップ時(未検証)
  • IOSアップグレード時 バックアップリストア (未検証)

Friday, March 30, 2012

Air ADTパッケージコマンド


Air for iOS向けのオプションの詳細がよくわからなかったがここにありました。
http://help.adobe.com/ja_JP/air/build/WS901d38e593cd1bac1e63e3d128cdca935b-8000.html

ipa-app-store でitune sote
ipa-test でテスト
ipa-debug でデバッグ

ディレクトリごとパッケージング指定できたのか。一ずつやってました。

Thursday, March 29, 2012

Plotcol flashsocket.io use to connect for Air

Air for iOS don't need FlashPolicyServer look like executing standalone swf file.
But Air fo Android need Flash policy file. I connect to 843port to find policy file.

I don't understand socket.io config (Flash Policy Server). Default port is 10843. But socketio client access to 843.

Tuesday, March 27, 2012

How to put Admob to Air app(iOS)

Android is easy. Please see my past post.
iOS is difficult. Because need mac.
On windows environment, maybe following error occur.


ld: unknown option: -ios_version_min
Compilation failed while executing : ld64

see this adobe blog.

need this option to build it and to use this option we need mac and xCode.
-platformsdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/


ADOBE® AIR® 用ネイティブ拡張の開発ガイド

こんなところにあったのか
http://help.adobe.com/ja_JP/air/extensions/air_extensions.pdf

Thursday, March 22, 2012

Air 2.6 Availabe Mobile Device

Update 2012/03/21

iOS

  • More than iOS 4.0
  • iPad, iPad2
  • iPhone 3GS, iPhone4, iPhone4S
  • iPod touch 3-4generation

Android

  • More than Android 2.2
  • ARMv70A processor
  • OpenGL ES2
  • 256Mbyte memory

If your device don't have requirement.
You can't find your application made by Air2.6.

Tuesday, March 13, 2012

Release iPad App "eniboard for iPad dala"

We release Android application "eniboard for iPad dala" version 1.0.
iTunes Store Homepage

eniboard is drawing tool which have 4 billion pixel width and height.
Please enjoy for drawing and seeing picture look like Map app.
I think we can draw biggest image in the world with drawing tool.
Moving operation looks like Map application (Google map ..etc)

At first, app name is "eniboard for iPad".
But it's difficult to upload ips file with Application Loader.
Always certification file error occurred.
So I created setting and certification file again and again.
Once I can't use name which I named once even if I removed it.

Monday, March 12, 2012

Flash CS5.5 How to change from Air 2.6 to 3.1

There are many information described about how to change from Air 2.6 to Air 3.1.
Overlaying AIR SDK for Flash Professional CS5.5

Need researching how to add apk-captive-runtime option to Flash CS 5.5  for publishing Android.


Tuesday, March 6, 2012

Air for iOS Google Analytics

There is library for counting page view on flash.
faforflash http://code.google.com/p/gaforflash/
The document said Air and standalone application are not supported.
But in the discussion of release 1.2, one project member said


"So far gaforflash has already been used for AIR application, but on our side we didn't tested for it.".

So I checked whether I can count by using gaforflash or can't.


Environment



SourceCode
import flash.display.SimpleButton;
import flash.events.MouseEvent;
import com.google.analytics.AnalyticsTracker; 
import com.google.analytics.GATracker; 

var gaupload_btn:SimpleButton;
var tracker:AnalyticsTracker = new GATracker( this, "UA******", "AS3", true );
gaupload_btn.addEventListener(MouseEvent.CLICK, loadclicked);

function loadclicked(e:MouseEvent):void{
 tracker.trackPageview("/myGame1"); 
}

Result
I can count the query from iPad to Google Analytics.

Query information
  • Operation System: Macintosh
  • Browser: Mozilla Compatible Agent
  • Browser version: 5.0
  • Display :768 1024
  • Flash version: 10.2


Monday, March 5, 2012

Air for iOS Capabilities.os value of iOS

We know the Operating system of device by using the class 'Capabilities' property 'os'.
I research the iOS value now.
(I will add the value to following list, when I use other device.)


Using device Result
iPad2 iPhone OS 4.3.5 iPad2,1

Friday, March 2, 2012

Flash CS5.5 Bug Using translation TextField in SimpleButton

If you use DynamicTextField that you want to use translation string inside SimpleButton.
Syntax error 'Syntax error: expecting semicolon before rightparen' occur.
Please ignore error message. The cause of error is using TextField inside SimpleButton.
If you change the type of object from 'Button' to 'MovieClip'.
It don't show any errors.
I think this is bug of FlashCS5.5.

Solution
 (1)Not add textfield to Button.
     Creating MovieClip and add textfield and button inside it.
     MovieClip1
      +-TextField1
      +-Button
 (2)Using actionscript and setting the translation string to properties of text.

iPad Haw to take print screen

While you are pushing 'Home button' and you push 'Sleep/wake button'.
The photo album get screen image and you can see it at 'Photos application'.

If you make a effort and you can take image of splash window.


Thursday, March 1, 2012

Flash CS5.5 Air for iOS Upload translation file

For uploading translation files to use 'Automaticaly translation' , it's not good to include folders(ex. en or ja).
If you upload only folder, application freeze.
So, we need to upload files "en\(appname_en.xml)". We don't need upload folders.