Basic HTML version of Foils prepared March 18 1998

Foil 36 Radio Buttons to control Background - ECMAScript Example - III

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


1 PROTO scriptControl [ eventIn SFBool set_boolean
2 eventOut SFBool true_changed
3 eventOut SFBool false_changed ] {
4 Script {
5 eventIn SFBool set_boolean IS set_boolean
6 eventOut SFBool true_changed IS true_changed
7 eventOut SFBool false_changed IS false_changed
8 url "vrmlscript:
9 function set_boolean( bool, eventTime ) {
10 if ( bool == true ) { true_changed = true; }
11 else { false_changed = true; }
12 }"
13 }
14 }# end of PROTO scriptControl

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