home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 187 / dpcs0903.iso / Setup / ShockFlash / Shockwave_Installer_Full.exe / SHOCKWAVEPLUGIN.CLASS (.txt) < prev    next >
Encoding:
Java Class File  |  2002-01-08  |  1.1 KB  |  62 lines

  1. import netscape.plugin.Plugin;
  2.  
  3. public class ShockwavePlugin extends Plugin {
  4.    public native void Play();
  5.  
  6.    public native void Stop();
  7.  
  8.    public native void Rewind();
  9.  
  10.    public native void GotoFrame(int var1);
  11.  
  12.    public native void GotoMovie(String var1);
  13.  
  14.    protected native void SetAutoStart(boolean var1);
  15.  
  16.    protected native boolean GetAutoStart();
  17.  
  18.    protected native boolean PendingResult();
  19.  
  20.    protected native void CurrentFrameSend();
  21.  
  22.    protected native int CurrentFrameResult();
  23.  
  24.    protected native void ScriptSend(String var1);
  25.  
  26.    protected native String ScriptResult();
  27.  
  28.    public void AutoStart(boolean var1) {
  29.       this.SetAutoStart(var1);
  30.    }
  31.  
  32.    public boolean AutoStart() {
  33.       return this.GetAutoStart();
  34.    }
  35.  
  36.    public int GetCurrentFrame() {
  37.       this.CurrentFrameSend();
  38.  
  39.       while(this.PendingResult()) {
  40.          try {
  41.             Thread.sleep(10L);
  42.          } catch (InterruptedException var1) {
  43.          }
  44.       }
  45.  
  46.       return this.CurrentFrameResult();
  47.    }
  48.  
  49.    public String EvalScript(String var1) {
  50.       this.ScriptSend(var1);
  51.  
  52.       while(this.PendingResult()) {
  53.          try {
  54.             Thread.sleep(10L);
  55.          } catch (InterruptedException var2) {
  56.          }
  57.       }
  58.  
  59.       return this.ScriptResult();
  60.    }
  61. }
  62.