Results 1 to 9 of 9
-
May 5th, 2012, 07:01 PM #1
Tutorials: Functions in JavaScript
Hi everyone,
This is the happening place to discuss all things related to the Functions in JavaScript tutorial. If you want to be cool, you know you want to read it.
Cheers,
Kirupa
-
May 5th, 2012, 08:20 PM #2
The equation at the start is wrong. The text description is correct though.
Proud Montanadian
We tolerate living and breathing. And niches.
Name Brand Watches
Maybe getTimer() or TweenMax is the answer to your problem . . .
-
May 6th, 2012, 11:08 AM #3869Registered User
postsIn general, how does the speed of javascript compare to actionscript? loops, functions, rendering?
-
May 6th, 2012, 03:21 PM #4
Thanks for pointing that out. That was such an embarrassing mistake to make

I really don't know, but I would guess comparable. JS performance in all of the recent crops of browsers has gotten much better than what it was in the past, but that isn't saying much. JS performance in the past was abysmal and AS was significantly faster.
-
May 6th, 2012, 07:26 PM #5
AS is compiled, JS is not - AS should always be 'faster'. If you were looking to reproduce something you previously developed in flash you trade off some speed to remove reliance on a run time environment (plugin) and gain the benefits of interacting directly with the browsers dom.
The speed of javascript relies on the browser (in part). The current crop of Mozilla, Opera, Chrome have all benchmarked quite high, I wish I had a link handy to show for some numbers but there are significant improvements over older generation browsers. The rest of the speed is up to the users device hardware.
-
May 7th, 2012, 12:10 AM #6
Google's V8 has crankshaft, which compiles JavaScript into native machine code before execution.
-
May 7th, 2012, 12:31 AM #7
-
May 7th, 2012, 06:41 PM #8
-
May 8th, 2012, 10:19 PM #9Proud Montanadian
We tolerate living and breathing. And niches.
Name Brand Watches
Maybe getTimer() or TweenMax is the answer to your problem . . .

Reply With Quote


Bookmarks