Basic HTML version of Foils prepared March 18 1998

Foil 29 ECMAScript Example -I

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

Listing and VRML of Script Starting a Conventional PositionInterpolater for Foil 29
1 DEF Action1 Script {
2 eventIn SFTime clicked
3 eventOut SFTime start
4 url "vrmlscript: // Note: Cosmo Player 2.0 still wants to see vrmlscript
5 function clicked(time)
6 { start = time; } "
7 }
8
9 ROUTE GO.touchTime TO Action1.clicked
10 ROUTE Action1.start TO TIME1.startTime
11 ROUTE TIME1.fraction_changed TO INTERP1.set_fraction
12 ROUTE INTERP1.value_changed TO T1.set_translation
13 Even though its JavaScript

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