Archive for category JavaScript

Optimizing AS3 with JavaScript

Now that AS3 is performing slower than JavaScript in some areas, should we be looking to optimize our AS3 by offloading tasks to JavaScript? That may sound perverse, but the possibility of major speedups is tempting. Today’s article looks for speedups using Flash’s AS3-to-JavaScript bridge: ExternalInterface.

Read the rest of this entry »

Tags: , ,

12 Comments

AS3 vs. JavaScript Performance Followup (April 2013)

It’s been about a year and a half 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: ,

19 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: ,

10 Comments

Pseudo Threads

Eventually, Flash Player will support Worker Threads to take advantage of multi-core CPUs, but that may be quite a while from now. Today’s article shows you how you can get some concurrency right now by faking threads. Read on for the technique!

Read the rest of this entry »

Tags: , , ,

18 Comments

AS3 vs. JavaScript Performance Followup (March 2011)

It’s been about 9 months since my last test of AS3 versus JavaScript and there have been several major releases. I’ve held off on an update to this series since the two most widely used browsers—Internet Explorer and Firefox—have been approaching significant new versions. In the meantime, Adobe has released Flash Player 10.2 as we’ve seen in my performance update series (part one, part two, part three). Today, we pit every major browser against each other and Flash Player itself to get an updated idea of which provides the fastest scripting environment on the web.

Read the rest of this entry »

Tags: ,

5 Comments

Definitive isNaN()

I wrote an article in November 2009 titled Faster isNaN() and a followup to it titled Even Faster isNaN() and continue to get comments on both, so today I’m doing a followup to bring together both articles and the many comments on them into one definitive article. (UPDATE: added Windows performance results)

Read the rest of this entry »

Tags: , , ,

9 Comments

Function Length

In my last article on getProperties, there was one strange finding in the tests of standard classes: the Function class seems to have a length field. What is it? Today we’ll see

Read the rest of this entry »

Tags: , , , , , , ,

4 Comments

AS3 vs. JavaScript Performance Followup (June 2010)

Version 5.0 of Safari was released on just a couple weeks ago on June 8 and Google Chrome was updated just a week before that. More importantly, to this site anyways, is the release of Flash Player 10.1 on June 10. Today’s article shows an updated performance comparison to check up on the progress being made in both JavaScript (Safari, Chrome) and AS3 (Flash Player).

Read the rest of this entry »

Tags:

9 Comments

Argument Clash

I am often burned by MXMLC: the AS3 compiler. When I am, I find this infuriating and look for the reason why this happened. Today I’ll tip you off about this problem and delve into what it means if you happen to trigger it.

Read the rest of this entry »

Tags: , , , , ,

No Comments

Cancelable Function

I recently had the need to cancel a callback function that I had passed to an API. The API had taken my callback function directly, so there was no way to remove the event listener. So I thought back to an old article I wrote and came up with a solution. Read on for a utility function that will allow you to cancel function callback in AS3 as well as JavaScript and AS2.

Read the rest of this entry »

Tags: , , ,

7 Comments