-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 04 May 2004 15:49, Miguel wrote:
> > I've got a question about the call back mechanism. Say we have an applet
> > in
> > which a animation is shown, then I want a call back to javascript that
> > signals me when the next frame is displayed...
> >
> > How does that work in terms of HTML/JavaScript code?
>
> To be Chime compatible, I still need to implement the AnimFrameCallback
> mechanism.

I've been browsing the source code... and things seem to be happening in 
JmolApplet.notifyAtomPicked() so I added:

  public void notifyAnimFrameChanged(int frameNo) {
    System.out.println("Anim Frame Changed(" + frameNo + "," + strInfo + ")");
    showStatus(strInfo);
    if (animFrameCallBack != null && jsoWindow != null)
      jsoWindow.call(animFrameCallBack,
                     new Object[] {htmlName, new Integer(frameNo)});
  }

I've matched the returned Object[] with the JavaScript on the user list...

But the method notifyAtomPicked() does not seem to be called from any place...
So I did not know where to call the notifyAnimFrameChanged either...

Miguel, suggestions?

Egon

- -- 
[EMAIL PROTECTED]
PhD on Molecular Representation in Chemometrics
Nijmegen University
http://www.cac.sci.kun.nl/people/egonw/
GPG: 1024D/D6336BA6

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (SunOS)

iD8DBQFAl67zd9R8I9Yza6YRAjakAKChWXOr1WfJHG5iGxg+9ZDEMHAVFQCdHhHG
99SVPj9qurz66ZueeL8fvHE=
=zOLu
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to