This template demonstrates how to construct an animation that makes use of IE4 windowless controls. It illustrates the following: - Using the modelmaker applet - Using the dxactrl (DirectAnimation windowless control) - Constructing the model and passing it to the control |
When designing windowless controls, the Java applet is used purely to construct the model. At runtime, hand the finished model over to the windowless control to be displayed. |
Create any type of animation you like here... it is completely up to you what goes into the model. |
The image is simply the rendered cube without any background. Since you want to overlay the windowless control with other HTML elements, specifically avoid a solidColor background. |
Here is the important part, rather than extending DXMApplet as usual, extend ModelMakerApplet. Aside from the name, the construction is exactly the same as if you were doing a normal applet. |
Always call the super classes init first to ensure codeBase is set. |
Now set the model. |
In the HTML file we place the DirectAnimation windowless control. This is what will actually display our model. Notice you can set it's style properties to get the proper layout and sizing. See IE4 documentation on style sheets for more information about using them. |
Also insert the applet which constructs your model. Notice that it's width and height are zero since it is only used to construct the animation |
A script is used to bridge the gap and pass the needed view, image and sound to the dxactrl for display. |