roguish

Category: Flash

Disabling the ESC Key in Fullscreen Mode

Over-The-Shoulder Quick Tip

Q: If you have a fullscreen SWF how do you prevent the display from returning to normal size display when the user presses the ESC key? An example case where this would be useful is pausing a fullscreen game and displaying an in-game menu.

A: I thought overriding the default behavior might pose a security risk, however it is not restricted. Listen for the associated keydown event for ESC and call preventDefault() on it. Read the full article »

Mr. Doob’s Hi-ReS! Stats Won’t Display — Bug Resolution

When porting an old project for iPad, I wanted to measure the FPS using the popular Hi-ReS! Stats tool from Mr. Doob:
http://mrdoob.com/blog/post/582

I was unable to make the stats module show up. I confirmed that it existed on the display list by tracing from its update method, but it wasn’t being shown on the screen. After poking at it for a while I discovered that by drawing additional content into the graphics layer of the Stats object after it is initialized I was able to force it to be shown. There may be other solutions and this may be limited to my particular configuration, but if anyone encounters this, here’s a hack that works. Below are the 3 lines that I added after initializing the Stats object. Commenting-out the 3 lines and changing nothing else will cause the Stats object to disappear. I can’t explain why — the source code looks fine. Read the full article »

To Kill or Pause an iOS App (when it’s Deactivated)

When an app is deactivated on iOS you can kill it instead of allowing it to continue running in the background (background running is the default behavior). Use the UIApplicationExitsOnSuspend property in the application configuration XML file:
<key>UIApplicationExitsOnSuspend</key>
<string>YES</string>
Adobe doc*

* please note the revised syntax and description from Holly Schinksy:
<key>UIApplicationExitsOnSuspend</key>
<true/>
http://devgirl.org/2011/06/24/exit-vs-suspend-your-ios-application/ Read the full article »

AIR 2.7 SDK Phantom Update (now with iOS fullscreen/gpu)



iOS developers trying to use the AIR 2.7 SDK have noticed that they’re unable to publish with the following combination of features: GPU/Fullscreen/Landscape mode. Adobe has updated the AIR 2.7 SDK release to fix the problem (users confirm it was fixed for iOS only), but there has not been an announcement about it nor is there any date on the AIR download page to suggest that the SDK has been updated. Get it here: http://www.adobe.com/products/air/sdk/ Read the full article »

Mobile Performance Tester — Now Live in App Stores

Performance Tester Icon
The Roguish Mobile Performance Test Application has been released on 3 mobile platforms: iOS, BlackBerry PlayBook and Android. The app is designed to demonstrate the performance difference with various Flash development settings and techniques. I’ll update this post with more details about the app and performance test results.

The app was published with Flash Builder 4.5 and the AIR 2.7 overlay.

Below are the download links in the various app stores: Read the full article »

File Object Inconsistencies in Mac/Win AIR Apps

I recently encountered 2 problems when migrating an AIR Flash Builder 4.5 project from a Windows 7 machine to a Mac. Both problems were related to external File loading and manipulation. I was going to write about my discoveries and solutions, but then did a little searching and found that Oliver Goldman (Adobe) addressed both problems in separate posts. So, instead of my original plan for this post, I’ll make a condensed post and dedicate it to Oliver Goldman. You can be sure I’ll be spending some time digging through his archives, especially his AIR Tips category: http://blogs.adobe.com/simplicity/category/api-tips Read the full article »

BlackBerry PlayBook First Impressions/Use Tips

BlackBerry PlayBook In HandMy BlackBerry PlayBook arrived recently. Here’s a few first impressions, discoveries and comments about it. Read the full article »

JVM Terminated: Java 1.6 on Mac OS X 10.5.x (for PlayBook) breaks Flash Builder

The Problem: JVM Terminated
You are a Flash developer using Flash Builder and a Mac running OS X Leopard (10.5.x). You want to develop an app for the new BlackBerry PlayBook using Adobe AIR so you get everything you need from the BlackBerry site (http://us.blackberry.com/developers/tablet/adobe.jsp) and install it according to the instructions.

Once you have the BlackBerry SDK installed, VMWare installed and running the BlackBarry virtual machine simulator you’re all ready to head over to Flash Builder to output your AIR project to try it in the Simulator. To your surprise, Flash Builder won’t launch! Read the full article »

Tricky end-game — signing your PlayBook apps

Here’s a Fantastic blog post by Adobe Platform Evangelist Hemanth Sharma with detailed step-by-step instructions to help you through the tricky end-game of deploying an AIR app to the new Blackberry Playbook — getting setup to sign and submit your app.

10 Easy Steps to Package and Sign AIR Apps for PlayBook

http://www.hsharma.com/tech/tutorials/10-easy-steps-to-package-and-sign-air-apps-for-playbook

GPU Test App AIR for Mobile

Optimizing Flash for mobile devices can be tricky business. With AIR for mobile we can take advantage of GPU acceleration on devices, but there’s a lot of confusion about how and when to use GPU acceleration. This test app shows the performance differences with different GPU settings and can be used for benchmark testing across devices.

The app has been published and uploaded to iOS, Android and BlackBerry PlayBook app stores. See this post for more info: http://www.roguish.com/blog/?p=326 Read the full article »