• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Java Basics

Java is generally a poor animation environment. Compared with even the most basic animation delivery media, such as GIF, files created in Java are bloated and slow. Consider a simple GIF animation, created in ObjectDancer, of a word flying and rotating across a window. An animated GIF that weighs in at a respectable 8KB becomes huge and ungainly in Java form at at 150KB because the bulk of the Java applet is the class files needed to make it work—not the actual artwork. Furthermore, the GIF plays immediately upon downloading, whereas the Java applet forces the browser to launch the computer's Java virtual machine, which can take painfully long times to launch on slower machines.

So why use Java for animation at all? The answer lies in Java's power as a programming language. Java lets you create an animation from images that normally can't be animated, such as a batch of JPEGs made into a slide show. Another function of Java is its capability to use variable data within an applet. A Java applet could present a different animation based on user response to a query form or based on data from the server, such as the latest news. A popular example is real-time stock tickers, which display animated information about the stock market that is constantly updated from an online database.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint