Posts

Es werden Posts vom 2012 angezeigt.

Air 3.5 & ios 6 - StageOrientation events firing only up&down

Recently updated my iOS app to use AIR 3.5 sdk - noticed my app wouldn't auto-orient sideways anymore. Only a complete flip would trigger stageOrientationChange events. In the app-descriptor xml I had the line <aspectRatio>portrait</aspectRatio> After deleting this, auto-orientation worked in every direction again. The behaviour is intentional, see: http://blogs.adobe.com/airodynamics/2012/05/22/stage-aspectratio-enhancements/

Play M3U8 HTTP Stream through Flash Player using apple-http-osmf

Tried getting my video player to play back Apple m3u8 formatted dynamic stream. After some hassle with the apple-http-osmf component which reads in m3u8 files and prepares them for playback with OSMF I ended up hearing the sound, not the seeing video. I had been using the MediaPlayer and MediaPlayerSprite classes so far. After reading this issue I switched to using the HTTPNetStream class, as dani at electroteque.net used that to successfully build a HLS plugin for the Flowplayer . Now my stream is played back through a regular flash.net.NetConnection. In order to make it work you need the latest sources from apple-http-osmf and the osmf player 2.0 If you get the "Error: Quality level cannot be set at this time." - just comment that line out in HTTPStreamSource.as:330. Also you want to make sure that within at.matthew.httpstreaming.HTTPStreamingM3U8Handler.as the RATES_READY event is fired before the INDEX_READY event. See the working source below or do...

Copying greensock LoaderMax ContentDisplay item

In order to copy a ContentDisplay item and thus be able to use the same bitmap asset multiple times in your application, you need to clone its BitmapData and make a new Bitmap out of it. Like so: public function getCopyOfAsset(asset:String):Bitmap { // get asset from your LoaderMax queue var content:ContentDisplay = myLoaderMax.getContent(asset); // access and clone source bitmap's BitmapData var bmp:Bitmap = new Bitmap(Bitmap(content.getChildAt(0)).bitmapData.clone()); return bmp; }

How to skip the itunes sync process when debugging your mobile air app

Use Xcode to sync your app with your iOS device. Connect the device and start Xcode 4.x. Go to Window -> Organizer On the left side, you see the properties of your connected device, amongst them select "Applications". In the bottom of the right pane click Add. Choose your IPA, it gets added to the device automatically. Older versions of your app are automatically overwritten. This is way faster than syncing with Itunes and you get warned in case your provisioning profile is expired etc. - better than Itunes just telling you that installation failed without any further information.

"unable to verify icon dimensions" error when submitting Flash iOS App to the Apple App Store

Tried submitting my app to the app store using the Application Loader. The package could not be sent due to an error that icons could not be generated: "unable to verify icon dimensions - CFBundleIcons" etc. I looked into the package and Icon.png was missing, Icon@2.png was there. The problem was that in my application descriptor XML amongst the <icon> entries one with <image57x57></image57x57> was missing. Thus the right icon could not be generated and the error message.