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

【Flex】spark.components.RichText 字間の調整

<s:RichText trackingRight="-1" /> という「trackingRight」プロパティで調整可能でした。 しかし、どうみても直感的にわからないプロパティ・・普通にletterspacingという名前にすればいいのでは無いか・・

【Flex】spark.components.RichTextの行数取得

var lineCount:int = richText.mx_internal::textLines.length; 普通にプロパティで取れるようにして欲しい・・

【Flex】spark.components.VideoPlayerのフルスクリーンボタンを消したい

spark.components.VideoPlayer のフルスクリーンボタンは、 var videoPlayerSkin:VideoPlayerSkin = targetVideoPlayer.skin as VideoPlayerSkin; videoPlayerSkin.fullScreenButton.visible = false; で非表示に出来ます。 しかしFLASH関係のヘルプは色々…

【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…