ForumsProgramming Forum... AS3 compared to AS2

8 4510
Koshionos
offline
Koshionos
881 posts
Jester

so what kind of advantage does AS3 have over AS2? i have wanted to know for awhile

  • 8 Replies
splatbert
offline
splatbert
5 posts
Nomad

not very many...

pengper
offline
pengper
9 posts
Nomad

actually... look here.

manny6574
offline
manny6574
922 posts
Nomad

Code is not all over the place. it can only be in frames aND EXTERNAL .AS FILES. Good organization. more flexible, you can have 1 function handling many events for example

Secretmapper
offline
Secretmapper
1,747 posts
Nomad

so what kind of advantage does AS3 have over AS2? i have wanted to know for awhile


More organized. Much cleaner if you 'look' at the code.

Disadvantage? More text.

But AS 3 still wins for me.
alsage
offline
alsage
132 posts
Nomad

As3 is object orient programming more like java script.. its harder but is way better and runs faster

Annihalation
offline
Annihalation
479 posts
Nomad

Yeah, AS3 runs significantly faster when handling multiple events. It also runs slightly faster in particular. If you want to make a BIG BIG game, AS3 would be the best bet. But if you're used to using AS2, you might as well stick with it, as AS3 takes a long time to get used to...

TheInvidual
offline
TheInvidual
4 posts
Nomad

There is no timer in AS2.

In AS2 you'd do this: http://the-dude.co.uk/tutorials/flash-as2-tutorials/countdown-timer-for-flash-games-as2/

In AS3 you'd do this:
var timer:Timer = new Timer(1000);
timer.start();
and you're done.

Besides, why would AS2 be better than AS3? Adobe wouldn't create a new language which is worse than the previous one now would they?

Showing 1-7 of 8