Archive for November, 2011

AS3 vs. AS3

One frequent request I get on my AS3 vs. JavaScript series is to test AS3 in more environments. Today I’m doing just that and testing its performance in browsers (plugin and ActiveX control) and standalone/projector mode across Mac OS and Windows operating systems. Does it make any difference? Read on to find out!

Read the rest of this entry »

Tags: , , , , ,

8 Comments

Serialize Anything

The ByteArray class, introduced in Flash Player 9, has a pair of very powerful functions alongside all the usual ones like writeInt. It actually allows you to read and write AS3 objects and provides an easy, fast, and compact way to serialize anything without writing any code. Today’s article explores shows you how to harness the power of these functions to improve your data serialization and deserialization.

Read the rest of this entry »

Tags: , , ,

37 Comments

AS3 vs. JavaScript Performance Followup (November 2011)

It’s been about 8 months since my last test of AS3 versus JavaScript and there have been several major releases of both browsers and the Flash Player. Today, we pit every major browser against each other and Flash Player itself to get an updated picture of which provides the fastest scripting environment on the web.

Read the rest of this entry »

Tags: ,

11 Comments

Stage3D AGAL Instruction Speed

Flash Player 11′s new Stage3D hardware-accelerated graphics API not only allows you to write shaders (custom code to position vertices and color pixels), it downright requires you to do so. To get the lowest level access (and therefore most power) out of your shaders, you write them in an assembly language called AGAL. Read on for a test app that compares the speed of these shader instructions, the fundamental building blocks of all Stage3D apps.

Read the rest of this entry »

Tags: , , , , , , , , ,

12 Comments

2D Array Alternatives

Thanks to Tronster for today’s guest article! If you’re interested in writing a guest article, e-mail Jackson about your idea.

Natively, Flash does not offer a two-dimensional array type. But, Flash’s one-dimensional Array and various other container types (i.e., Object, Dictionary, and Vector) allow for user-created 2D array solutions. Today’s article explores the performance of various ways to make a 2D array.

Read the rest of this entry »

Tags: , , , , ,

13 Comments