This content has been marked as final. Show 8 replies
AS 2.0 will give you the same speed as AS 3.0.
> 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.
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
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:
> AS 2.0 will give you the same speed as AS 3.0.
That is not true. AS3.0 is MUCH faster
I apologize for wrong comments.
thanks for the article link
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.
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!