home *** CD-ROM | disk | FTP | other *** search
- import java.applet.Applet;
- import java.awt.Component;
- import java.awt.Container;
- import java.awt.LayoutManager;
- import java.beans.PropertyVetoException;
- import java.net.MalformedURLException;
- import java.net.URL;
- import symantec.itools.lang.Context;
- import symantec.itools.multimedia.Animator;
- import symantec.itools.net.RelativeURL;
-
- public class Plane extends Applet {
- Animator animatorPlane;
-
- public void init() {
- Context.setApplet(this);
- ((Container)this).setLayout((LayoutManager)null);
- ((Component)this).setSize(520, 79);
- this.animatorPlane = new Animator();
- this.animatorPlane.setPreviewMode(true);
-
- try {
- URL[] tempURL = new URL[15];
- tempURL[0] = RelativeURL.getURL("Images/plane01.gif");
- tempURL[1] = RelativeURL.getURL("Images/plane02.gif");
- tempURL[2] = RelativeURL.getURL("Images/plane03.gif");
- tempURL[3] = RelativeURL.getURL("Images/plane04.gif");
- tempURL[4] = RelativeURL.getURL("Images/plane05.gif");
- tempURL[5] = RelativeURL.getURL("Images/plane06.gif");
- tempURL[6] = RelativeURL.getURL("Images/plane07.gif");
- tempURL[7] = RelativeURL.getURL("Images/plane08.gif");
- tempURL[8] = RelativeURL.getURL("Images/plane09.gif");
- tempURL[9] = RelativeURL.getURL("Images/plane10.gif");
- tempURL[10] = RelativeURL.getURL("Images/plane11.gif");
- tempURL[11] = RelativeURL.getURL("Images/plane12.gif");
- tempURL[12] = RelativeURL.getURL("Images/plane13.gif");
- tempURL[13] = RelativeURL.getURL("Images/plane14.gif");
- tempURL[14] = RelativeURL.getURL("Images/plane15.gif");
- this.animatorPlane.setImageList(tempURL);
- } catch (MalformedURLException var2) {
- } catch (PropertyVetoException var3) {
- }
-
- this.animatorPlane.setBounds(192, 0, 128, 71);
- ((Container)this).add(this.animatorPlane);
- }
- }
-