Basic HTML version of Foils prepared March 18 1998

Foil 13 Getting Input Event in Script Node with ECMAScript

From Scripting and EAI in VRML97 CPS616 -- Information Track of CPS -- Spring Semester 98. by Hasan Ozdemir (Geoffrey C. Fox)

Two Examples for eventIn/eventOut from ECMAScript for Foil 13
1 function's name is the same as the eventIn field's name and is passed two arguments, event value and its timestamp(SFTime).
2 Script {
  • eventIn SFVec3f set_position
  • url "javascript:
    • function set_position(value,timestamp) {...} "
3 }
4 Whenever set_position event occurs, set_position() method is being called.

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998