AAAfireworks

Fireworks Applet Tutorial



This tutorial is on the Fireworks Applet
Great for a celebration !
Or, just because you like them.....
 
This one requires no main image .  All you need are
the class files (Rocket.class and Fireworks.class)
which you can find zipped up along with
a script sniplet and a fireworks.au sound effects
 filein the files section at Yahoo.
You can make changes in the applet script that will
affect how the fireworks are displayed.
By changing the parameter numbers,
the Fireworks applet can be configured for different speeds, different number of rockets,
 and different gravity effects.

Also you can change the sound used for the
explosion by changing the sound file used.
I am uploading some patriotic and firework
sounds midis to the Yahoo files section for you.
I don't know if they will substitute in the applet.
But you could use them for background sounds.
However, you should never use two sounds on a page
or in of the same type, such as 2 wavs, or 2 midis.
 
Your player can only do one at a time.
An asf file should not interfere with either of them.
 
 For webpages use :
 
<center><applet code=Firework.class width="400" height="200">
<param name="AnimationSpeed" value="100">
<param name="RocketSoundtrack" value="website pathway/fire.au">
<param name="RocketStyleVariability" value="10">
<param name="MaxRocketNumber" value="7">
<param name="MaxRocketExplosionEnergy" value="100">
<param name="MaxRocketPatchNumber" value="90">
<param name="MaxRocketPatchLength" value="500">
<param name="Gravity" value="10">
</applet></center>
 
For stationery use :
 
** notice once again the difference here. 
you must use the codebase=
when using the applet in a stationery.
 
<center><applet codebase="your website addy/ " code=Firework.class width="400" height="200">
<param name="AnimationSpeed" value="
100
">
<param name="RocketSoundtrack" value="
website pathway/fire.au
">
<param name="RocketStyleVariability" value="
10
">
<param name="MaxRocketNumber" value="
7
">
<param name="MaxRocketExplosionEnergy" value="
100
">
<param name="MaxRocketPatchNumber" value="
90
">
<param name="MaxRocketPatchLength" value="
500
">
<param name="Gravity" value="
10">
</applet></center>
 
Be careful of your sizes....you may have to make some changes in the size of applet.
It is an easy one.   You will find some patriotic midi files and some fireworks midi files in the music file at Yahoo.  I am also uploading  a zip file of firework gifs in case you might want some on your pages or in your stationerys, try one as a background.....they are transparent.  in the graphics files section at Yahoo.  If as always, you run into problems, need some help.....don't hesitate to call on Karen, Shari or someone in the group to assist you.
 
Hugs,
 
Karen
 
 

Copyright İFebruary, 2002 - All Rights Reserved.