开发者

Flash animations with Javascript?

开发者 https://www.devze.com 2022-12-27 13:09 出处:网络
How does something like this work wit开发者_JS百科hout Flash? http://www.dirtyphonebook.com/dashboard/425-205-1921

How does something like this work wit开发者_JS百科hout Flash?

http://www.dirtyphonebook.com/dashboard/425-205-1921

I right-clicked on it but there's no Flash menu. I love Flash because its stable and works. But is using some sort of Javascript hack for this kind of complex behavior actually a good idea?


The source code says they used this JS library, Raphael, to do it.


There are quite a few Javascript frameworks that allow for animation (jQuery etc).

It's not a hack - it's creative use of DHTML.

The downside is that Javascript can eat the browser's memory. Flash, on the other hand, runs parallel to the browser (as a separate application) and so can be faster when rendering animated effects. BUT Flash requires the Flash Player plugin, which must be installed separately and may not be available for all browsers and in all devices.

So, both Flash and animation via Javascript have pros and cons.

HTML5, which Apple states will replace Flash, is not yet supported across the board, and will apparently offer even easier animation options.

Hope this helps. Unfortunately this is a "what is your opinion" sort of thing, rather than a cut and dried answer.


The link you sent seems to have been created using SVG (Scalable Vector Graphics). Here is some documentation on how to start animating. There's a library named Raphael that can help you achieve those results.

You could also use a framework like jQuery to animate elements on a page. There's a tutorial on how to animate a cartoon using jQuery found here

0

精彩评论

暂无评论...
验证码 换一张
取 消