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)


PROTO scriptControl [ eventIn SFBool set_boolean
eventOut SFBool true_changed
eventOut SFBool false_changed ] {
Script {
eventIn SFBool set_boolean IS set_boolean
eventOut SFBool true_changed IS true_changed
eventOut SFBool false_changed IS false_changed
url "vrmlscript:
function set_boolean( bool, eventTime ) {
if ( bool == true ) { true_changed = true; }
else { false_changed = true; }
}"
}
}# end of PROTO scriptControl



© 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