During installation, Jamba automatically creates a main directory called Jamba unless you specify a different name, such as, MyWork. For simplicity, this book assumes that your main Jamba directory is called Jamba. The Jamba directory contains all the files required to run Jamba.
Jamba also sets up several subdirectories for each project you create. Use these subdirectories to store files used by a project. For example, store graphic files in the Graphics directory and audio files in the Audio directory. The following list shows all of the subdirectories and their contents.
Subdirectory
File Type
Audio
Audio
Classes
Jamba player and Java classes
Distrib
Distribution
Graphics
Graphic
Text
ASCII text
If you choose to use a file that is not located in the appropriate project subdirectory, Jamba automatically copies the file to the correct directory. For example, consider the following project: C:\Jamba\MyApp\Myapp.jmb. If you create a Graphic object and set its Filename property using a graphic in D:\Graphics, Jamba copies the file to C:\Jamba\MyApp\Graphics.
When you save a project, Jamba saves your work in three different formats, each of which serves a different purpose. Consider an application that you create called myapp. When you save your application, Jamba actually saves MyApp.jmb, M yApp.html, and MyApp.jtf.
The . html file is the HyperText Markup Language (HTML) file that you display in a Web browser. (Web pages are actually . html files). You can display the Jamba-generated . html file in its entirety as a standalone application or you can incorporate it into an existing . html file if you want it to be part of another HTML page. At runtime, the . html file generated by a Jamba project uses the . jtf file where the Jamba code resides.
To incorporate a Jamba-generated . html file into an existing . html file, use an ASCII Text Editor (such as Notepad) to copy and paste the contents of the Jamba-generated file into the existing . html file. For example, the following figure shows an example of and .html file generated through Jamba and viewed in Microsoft WordPad.
This file creates a 400 pixel by 400 pixel window within a JavaTM -enabled browser. It also contains:
The Aimtech Jamba player, which contains the JavaTM classes.
The .jtf file, which contains the data for the Jamba player.
The name of the page (in the .jtf file) to display first.
This file runs myapp.jtf which displays a Push Button that the user can use to play an audio file. To include these instructions in another . html file, you would copy all of the lines in the file and paste them into the desired position in the other . html file.
For information on the format and tags used in the Jamba-generated . html file, see Appendix B.
The . jtf file is the Jamba Text Format file that is called by the . html file. This is an ASCII text file that contains all of the values for the properties, methods, and events in the .jmb file. The .jtf file is what actually displays the interactive multimedia objects at runtime, using the Jamba Java Player.