PDA

View Full Version : Slow Animation on top of Java Applet


mark4man
09-04-03, 04:31 PM
Put together a real nice animation of a moving rocket ship; & wanted it to be placed on a dynamic space background. Found a great free Java Applet entitled "Flying Stars", where a field of stars moves laterally across a black background (in the same direction as my animated ship)!

Trouble is, when I assign my animated .gif to the Applet code & preview in my browser, for some reason, the animation plays very, very slow (i.e., instead of the frames playing every .1 second, they play every 4 or 5 seconds.)

Was hoping someone here could provide some insight (& hopefully some answers.)

Thanks in advance,

mark4man

e4c5
09-05-03, 11:10 AM
Hi,
Not enough information to help.
Are you using Swing or AWT? are you using timer events or some other mechanism for the animation? which version of jdk and jre?

best regards

mark4man
09-05-03, 09:35 PM
Raditha,

Don't know how to get into the .class file to find out. The Applet code points to a .class file.

Thanks,

mark4man

e4c5
09-06-03, 12:03 PM
is this a commercial product? havent they included any docs?

mark4man
09-06-03, 03:30 PM
Rad,

It was a free Java Applet from JavaScript Kit (formerly Website Abstraction.) Don't know anything about Java or JavaScripting, that's why I'm here.

mark4man

e4c5
09-07-03, 10:02 AM
great,
start by heading off to http://java.sun.com and reading the online tutorials :-)