Skip to main content
Participant
February 4, 2007
Question

As 3.0 and flash player's speed

  • February 4, 2007
  • 5 replies
  • 627 views
in flash player 9, do I need to write in AS 3.0 in order to get the benifits of the new speed? Or do I only need to use flash 9 (with AS 2.0) and export the movie as flash player 9?
This topic has been closed for replies.

5 replies

Inspiring
February 6, 2007
> AS 2.0 will give you the same speed as AS 3.0.

That is not true. AS3.0 is MUCH faster
--
Jeckyl



Known Participant
February 6, 2007
I apologize for wrong comments.

thanks for the article link

quote:

developers have started to push AVM1 to its limits; their project requirements now demand a major breakthrough. ActionScript 3.0 introduces a new highly optimized ActionScript Virtual Machine, AVM2, which dramatically exceeds the performance possible with AVM1. As a result, ActionScript 3.0 code executes up to 10 times faster than legacy ActionScript code.


February 6, 2007
And apologies on my part, I guess that's 10 times faster, not 100 times faster. :-P Although, some of the AS3 components are practically a 100 times faster. I recall reading that at the MAX conference they had a List component with 1,000,000 entries, and selected several hundred thousand without any lag. I'm pretty sure that there isn't a computer in the world that wouldn't promptly roll over and die with a AS2.0 List component trying to load a million items, much less select thousands of them at once!
February 6, 2007
Yes, AS3.0 is completely different, re-written from scratch. Basically, Flash Player 9 now has two completely different Actionscript Virtual Machines(AVMs). AVM1 to run AS1.0 and 2.0, and AVM2 to run 3.0. Even though 2.0 can emulate OOP, the 3.0 language and AVM2 combined work very differently internally to make it so much faster. The differences can be quite technical, but here is a good place to start:

http://www.adobe.com/devnet/actionscript/articles/actionscript3_overview.html
flsgAuthor
Participant
February 6, 2007
so do you mean that AS 3.0 is totally different from AS 2.0? If it isn't then what makes it so fast? Because there's also OOP in AS 2.0
February 5, 2007
> AS 2.0 will give you the same speed as AS 3.0
No way, mate. AS3 is up to a 100 times faster.

Yes, you will need to write in AS3 to get most of the speed enhancements in Flash Player 9, but there are probably small tweaks to the rendering engine in FP9 that will apply to both ActionscriptVirtualMachine1(AS1/2) and AVM2(AS3) in FP9. The major performance increase does not pertain to rendering of visual elements, but to processing AS3 code, which is due to how the AVM2 was created in the Player. But short answer: yes, to get the blazing performance there is all this buzz about in FP9, you need to use strictly AS3.

You would also need to use a lot of OOP code design to really get the most out of AS3 performance.
Known Participant
February 5, 2007
AS 2.0 will give you the same speed as AS 3.0.