home *** CD-ROM | disk | FTP | other *** search
- import netscape.javascript.JSObject;
- import netscape.plugin.Plugin;
-
- class ShockwavePlugin extends Plugin {
- JSObject win;
- boolean bAutoStart;
-
- public native void Play();
-
- public native void Stop();
-
- public native void Rewind();
-
- public native int GetCurrentFrame();
-
- public native void GotoFrame(int var1);
-
- public native void GotoMovie(String var1);
-
- public native String EvalScript(String var1);
-
- public void AutoStart(boolean var1) {
- this.bAutoStart = var1;
- }
-
- public boolean AutoStart() {
- return this.bAutoStart;
- }
-
- public void init() {
- this.win = ((Plugin)this).getWindow();
- this.bAutoStart = true;
- }
-
- public void CallBrowserScript(String var1) {
- String var2 = "yo. " + var1 + "\n";
- System.out.print(var2);
- this.win.eval("alert(\"about to call whatever string was passed to me\");");
- this.win.eval(var1);
- }
- }
-