Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What would be quicker Flash or Javascript?

I have an idea for a website which involves a canvas area which has no limit to its size. Basically you would be able to add items to the canvas (notes, photos whatever really). You would then be able to drag the canvas which would move those items along with the canvas until they disappear of screen. If you dragged the canvas back the other way they would appear again.

Question: Which would be the best suited to this type of thing, Flash or Javacsript?

My main worries are the speed at which javascript/ flash could handle moving multiple items around on screen in the way discribed. Which language would handle better for a user on a slow machine.

UPDATE:

Thanks for your opnions guys, but to clarify what are the benefits of canvas over straight jQuery DOM manipulation? or visa versa. I've never used canvas before.

like image 417
John_ Avatar asked Nov 18 '25 21:11

John_


2 Answers

I don't think this is a question that will get you an objective answer - Flash developers will tell you Flash is better, web developers will say JavaScript. Trying to remain objective, I'd say that both technologies are suitable for what you describe, but have different advantages.

Flash will definitely render faster, even on slow machines, and is much richer graphically.

JavaScript is more accessible and works on a greater number of devices. Use a good JS framework though.

like image 113
Iain Avatar answered Nov 20 '25 12:11

Iain


My initial thought would be to go with Javascript - if it's good enough for Google Maps, it's probably good enough for your app too.

like image 21
Greg Hewgill Avatar answered Nov 20 '25 12:11

Greg Hewgill



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!