Browsing all 8 posts in Actionscript.

3

Flash Mobile Drawing: Graphics Source Code

This is an update from the original article Flash Mobile Drawing Performance: The Best Way? I promised some code showing how to implement the ‘graphics.rect’ solution mentioned in various other articles.  First, some quick notes: All class files have been flattened down to one so it is easier for anyone wanting to test it out. [...]

1

Flash Mobile Drawing: Using Graphics in Small Doses

This is an update from the original article Flash Mobile Drawing Performance: The Best Way? Working with Jake from byHook and testing the graphics.drawRect() approach, we have come to an interesting intitial conclusion. Using the graphics rendering solution by far outperforms the alternatives when a relatively small number of items have to be drawn.  When [...]

5

Flash Mobile Drawing Performance: The Best Way?

I’ve read a lot of posts about how to get the best performance when rendering/drawing using Adobe AIR for mobile.  Some claim using Sprites and setting cacheAsBitmap and cacheAsBitmapMatrix is the key.  Others claim that drawing all graphics to a single Bitmap is the way to go. Surprisingly, I haven’t read anything about the method [...]

3

Taking Control of the Back Button in Views (Adobe AIR / Flex Mobile)

This post is partitially inspired by swfHead’s PROPERLY Preventing the Back Button in Flex Hero Mobile Applications article where your mobile app intercepts ‘BACK’ key events thus preventing native back button behavior. Using the Flex framework, this would result in popping off the current view — navigator.popView(). We’ll be looking at giving each individual View [...]

1

How to Close the Android Soft Keyboard (Adobe AIR / Flex Mobile)

When developing a mobile Adobe AIR app, you may want to to use the native Android keyboard rather than intercepting keyboard events and rolling out your own Flex keyboard. Unfortunately, there is currently no API for direct access. So what do you do if you want to manually open and hide the native keyboard? Currently, [...]

0

Release: FlyBy Framework

FlyBy is a poor man’s MVC framework that breaks away from the norm and provides a different approach towards separating view, logic and data.

3

Scale 9 and Scale 25 setup in the Flash IDE

Scale 9 and Scale 25 setup in the Flash IDE

Before we begin, please note that this article builds off of the scale 25 post and uses the Scale 25 library.  Also note that this solution is not dependant upon development in Flash.  In fact, I use this solution primarily for Flex and Actionscript projects developed in Flash Builder with most graphical assets compiled into [...]

3

The Power of Scale 25

The Power of Scale 25

Need to scale an image while locking down the corners so they remain the same size and ratio?  Then scale 9 slicing is your answer.  Need to do almost anything else involving scaling and you’re most likely looking at a custom component.  Perhaps splitting out the background that needs scale 9 and any remaining graphics [...]