Jump to content

Flash Vs. JS


Derleek

Recommended Posts

What do you guys to animate elements of a website?

  -Flash or Javscript?

 

I am looking at some examples of what Mootools has to offer as far as pure aesthetics and i'm really pretty impressed.  Although there do seem to be some glitchy ones that use much more advanced techniques (ex: kind of jittery/shaky).

 

Why not just use flash to make the animations?

 

I mean does using flash limit your audience (by users not having flashplayer installed or large download times for users withs low internet?).  That is the main reason I can come up with for not using flash, besides its kinda just a pain in my ass.

 

 

 

 

 

Link to comment
Share on other sites

yeah, check out mootools

 

You can do lots of stuff with JS. [ur=jquery.coml]Jquery[/url] is another Javascript famework that is pretty popular it seems.

 

I personally am going at mootools.

 

anywho.  It seems like for certian things Flash is definitely better (ad's and other more intensive animations) while mootools/jquery provide some neat tools for content display.

 

Morphing styles with Javascript is fun =)

 

As for the limitations, i read that only about 5% of internet users do not have javascript, I have yet to find a statistic if flash is more/less common.

Link to comment
Share on other sites

I guess that limitations are so minor that one shouldn't bother considering. The only thing is the Flash version, which in many computers may not be the latest. Even though, one can export for an older version, or run some detection.

 

As for the technology contrasts, they are really different ones. Once upon a time when JavaScript was evil, Flash was the (only) choice for an interactive and cool looking website. There were problems to it, filesize (as designers wanted to unleash all its potential, will complex animations and videos), search engine visibility (only recently google came up with an algorithm to track flash pages) and accessibility. But those times are gone and JavaScript can now days be used with confidence. It doesn't provide the flexibility and animation power that flash does, but who needs that for regular websites. Surely, that doesn't mean that flash is dead and companies like 2advanced demonstrate it. Just that in my opinion, flash is more suitable for ads, demos and anything related that needs good presentation. Otherwise, for simple animations (or even none), JavaScript is a good and simple choice.

 

I've been working a bit on mootools when I discovered these JavaScript libraries, but i've found Prototype and Script.aculo.us to be better and simpler. Plus adding that they are a lot better supported.

Link to comment
Share on other sites

the 99% doesn't mean a lot when it takes someone with crappy internet 15 minutes to download a web-page (although dial-up is becoming less common these days).  There are many things that make developing a site ENTIRELY in flash a bad idea. minor issues such as compatibility may not be that big of a deal any more, but a site developed in flash can get out of hand easy and really distract from the information trying to be displayed. ex: breaking bad It is never good to have your users search for the content. (i wanted to find the ace of cakes website but i don't have time to dig up that piece of junk).

 

How good is google's support for search engine visibillity of Flash?

 

I completely agree with guiltygear, flash has its place in the web-design world.  But for the average site javascript animation is a great way to avoid the downsides.

 

I was just really wondering where web-designers stand on grounds of animation development.

Link to comment
Share on other sites

I have had to deal with this exact topic for the last several months at work. There are two schools of thought on the matter, and they have both been touched on here already, so I won't get into depth with it. In my mind, it comes down to this: if the content of the animation can be left entirely out of the DOM and therefore out of SEO content, use flash. However, if you are writing up an animation for content that needs to be available to spiders as part of the DOM, flash obviously will not work, and you need to use JavaScript to the best of your ability.

 

That being said, there are some points where (in my opinion) one or the other should always win out. If you are doing a simple image rotation or animation (gallery or whatever), flash should really be the poison of choice... even for dynamically loaded galleries - just use XML for your data set. On the other hand, if you have to have physical text/content that needs to be markup within the animation, your obvious choice will be JavaScript (at least until Flash fully supports CSS). If you do not use JavaScript for this type of layout, you will end up having to implement Flex and some other things that can be quite overkill for simply animating a content block.

 

Now, on the topic of tools, I have to agree that mootools has some interesting effects, but it is a bloated toolset when compared to some of the other libraries available. I would definitely recommend jQuery for 99% of the client side coding that needs to be done. It is light enough for you to create your own objects and animate stuff however you see fit. Check out the animate method that can so easily be implemented into your code base. In addition, the jQuery object has a fadeIn() and fadeOut() method that allow for that type of animation as well. All in all, this is by far the best tool out there for lightweight performance boosters.

 

I just finished publishing a Slideshow component into our company's internal CMS that implements jQuery to allow for fully customized animation between dynamic content blocks within a page. Including full JSDoc documnetation, the entire JavaScript file is only about 400 lines long... I love jQuery ;)

Link to comment
Share on other sites

Also another thing to note is that when i have a normal website and do nothing, FF uses like 0-5% cpu but a website in all flash like diablo3.com uses 25-35% when idle.  Now generally CPU in not a big issue but just another this the flash requires more off(a page like http://www.extjs.com/deploy/dev/docs/ all if javascript requires 20-30% cpu on load but after is goes down to 0-5%).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.