2011-09-01から1日間の記事一覧

【Flex mobile】StageWebViewでローカルにあるhtmlを表示

xmlns:s="library://ns.adobe.com/flex/spark" actionBarVisible="false" creationComplete="view1_creationCompleteHandler(event)" title="Map"> import mx.events.FlexEvent; protected function view1_creationCompleteHandler(event:FlexEvent):void { …

【Flex mobile】iphone/androidのos判定

var os:String = flash.system.Capabilities.os; if(os.indexOf("iPhone") != -1){ //iphone// }else{ //android //android実機では、変数"os"にはなぜか"android.."ではなく"linux.."が入っている。 //なのでモバイル用の判定方法が別にあるのではないかと…

【Flex mobile】バージョン番号、アプリケーション名などをapp.xmlから取得

var descriptor:XML = NativeApplication.nativeApplication.applicationDescriptor; var ns:Namespace = descriptor.namespaceDeclarations()[0]; var appFileName:String = descriptor.ns::filename; var appVersion:String = descriptor.ns::versionNumbe…